path: root/meta/recipes-devtools/quilt/quilt/test.sh
diff options
authorDengke Du <dengke.du@windriver.com>2016-03-25 03:46:03 -0400
committerDengke Du <dengke.du@windriver.com>2016-03-25 03:46:03 -0400
commitfd0548b7b60220ca68bce43e6c27bfbf26a12c38 (patch)
treefd5d9e73b126013c8819a6950ad24ad36b52e7e8 /meta/recipes-devtools/quilt/quilt/test.sh
parentb58e5b1fb3bcacbcfce17a748bca5f60c3528b4f (diff)
quilt: run ptest as normal userdengke/quilt-ptest-fail-fixed
When the user is root, run quilt ptest, the faildiff.test failed. Because in the faildiff.test, we drop the read permission of the file test.txt, we can't "quilt refresh" as normal user, so we got the following: >~ .*diff:test\.txt: Permission denied > Diff failed on file 'test.txt', aborting But when the user is root, we can access the file, so we got the following: > Nothing in patch patchs/test.diff So the faildiff.test was failed. We should create a normal user to run the ptest in the run-ptest scripts to slove the problem. Signed-off-by: Dengke Du <dengke.du@windriver.com>
Diffstat (limited to 'meta/recipes-devtools/quilt/quilt/test.sh')
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/quilt/quilt/test.sh b/meta/recipes-devtools/quilt/quilt/test.sh
new file mode 100755
index 0000000000..6563e4a2fb
--- /dev/null
+++ b/meta/recipes-devtools/quilt/quilt/test.sh
@@ -0,0 +1 @@
+for i in `ls test/*.test |awk -F. '{print $1}' |awk -F/ '{print $2}'`; do make check-$i; if [ $? -eq 0 ]; then echo PASS: $i.test; else echo FAIL: $i.test; fi; done