mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2026-01-27 10:41:26 +01:00
lxc: make error report compatible with ptest
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>
This commit is contained in:
parent
39fd98a285
commit
ed2038c935
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user