diff options
author | Sinan Kaya <okaya@kernel.org> | 2018-10-12 16:56:24 +0000 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2018-10-16 10:25:58 -0400 |
commit | ed2038c935777d1336c17989d454f4e9c95fea7f (patch) | |
tree | 1f04703ee0ad9ef6c624ec4528bbbf2e73506483 /recipes-containers/lxc/files/run-ptest | |
parent | 39fd98a285699c32cf61fe3609e41e341319b06a (diff) | |
download | meta-virtualization-sumo.tar.gz |
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>
Diffstat (limited to 'recipes-containers/lxc/files/run-ptest')
-rw-r--r-- | recipes-containers/lxc/files/run-ptest | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes-containers/lxc/files/run-ptest b/recipes-containers/lxc/files/run-ptest index e9855449..3f3a75f2 100644 --- a/recipes-containers/lxc/files/run-ptest +++ b/recipes-containers/lxc/files/run-ptest | |||
@@ -29,17 +29,17 @@ do | |||
29 | then | 29 | then |
30 | $test >logs/$(basename $test).log 2>&1 | 30 | $test >logs/$(basename $test).log 2>&1 |
31 | else | 31 | else |
32 | echo "$test SKIPPED" | 32 | echo "SKIPPED: $(basename $test)" |
33 | skipped=$((skipped+1)) | 33 | skipped=$((skipped+1)) |
34 | continue | 34 | continue |
35 | fi | 35 | fi |
36 | 36 | ||
37 | if [ $? -eq 0 ] | 37 | if [ $? -eq 0 ] |
38 | then | 38 | then |
39 | echo "$test PASS" | 39 | echo "PASS: $(basename $test)" |
40 | passed=$((passed+1)) | 40 | passed=$((passed+1)) |
41 | else | 41 | else |
42 | echo "$test FAIL" | 42 | echo "FAIL: $(basename $test)" |
43 | failed=$((failed+1)) | 43 | failed=$((failed+1)) |
44 | fi | 44 | fi |
45 | done | 45 | done |