aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSinan Kaya <okaya@kernel.org>2018-10-12 16:56:24 +0000
committerBruce Ashfield <bruce.ashfield@windriver.com>2018-10-16 10:25:58 -0400
commited2038c935777d1336c17989d454f4e9c95fea7f (patch)
tree1f04703ee0ad9ef6c624ec4528bbbf2e73506483
parent39fd98a285699c32cf61fe3609e41e341319b06a (diff)
downloadmeta-virtualization-sumo.tar.gz
meta-virtualization-sumo.tar.bz2
meta-virtualization-sumo.zip
lxc: make error report compatible with ptestsumo
ptest puts the test status at the beginning of the test. Follow the style. BEGIN: /usr/lib/lxc/ptest ### Starting LXC ptest ### SKIPPED: lxc-test-apparmor FAIL: lxc-test-attach PASS: lxc-test-automount FAIL: lxc-test-autostart PASS: lxc-test-cgpath PASS: lxc-test-cloneconfig PASS: lxc-test-clonetest PASS: lxc-test-concurrent FAIL: lxc-test-console PASS: lxc-test-containertests PASS: lxc-test-createconfig FAIL: lxc-test-createtest FAIL: lxc-test-destroytest PASS: lxc-test-device-add-remove PASS: lxc-test-get_item PASS: lxc-test-getkeys PASS: lxc-test-list PASS: lxc-test-locktests PASS: lxc-test-lxcpath PASS: lxc-test-may-control PASS: lxc-test-reboot PASS: lxc-test-saveconfig SKIPPED: lxc-test-shutdowntest PASS: lxc-test-snapshot PASS: lxc-test-startone PASS: lxc-test-utils Results: PASSED = 19 FAILED = 5 SKIPPED = 2 (for details check individual test log in ./logs directory) ### LXC ptest complete ### END: /usr/lib/lxc/ptest Signed-off-by: Sinan Kaya <okaya@kernel.org> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r--recipes-containers/lxc/files/run-ptest6
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes-containers/lxc/files/run-ptest b/recipes-containers/lxc/files/run-ptest
index e985544..3f3a75f 100644
--- a/recipes-containers/lxc/files/run-ptest
+++ b/recipes-containers/lxc/files/run-ptest
@@ -29,17 +29,17 @@ do
then
$test >logs/$(basename $test).log 2>&1
else
- echo "$test SKIPPED"
+ echo "SKIPPED: $(basename $test)"
skipped=$((skipped+1))
continue
fi
if [ $? -eq 0 ]
then
- echo "$test PASS"
+ echo "PASS: $(basename $test)"
passed=$((passed+1))
else
- echo "$test FAIL"
+ echo "FAIL: $(basename $test)"
failed=$((failed+1))
fi
done