From ed2038c935777d1336c17989d454f4e9c95fea7f Mon Sep 17 00:00:00 2001 From: Sinan Kaya Date: Fri, 12 Oct 2018 16:56:24 +0000 Subject: 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 Signed-off-by: Bruce Ashfield --- recipes-containers/lxc/files/run-ptest | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'recipes-containers/lxc') 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 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 -- cgit v1.2.3-54-g00ecf