From 00ce121fd55e5947d477be4601169e8676a2bbbf Mon Sep 17 00:00:00 2001 From: Ashutosh Mehra Date: Mon, 23 Sep 2019 08:36:12 +0000 Subject: Add `criu` to PATH env variable in libcriu tests PATH is pointing to incorrect location for `criu` executable causing libcriu tests to fail when running in travis. Also added statements to display log file contents on failure to help in debugging. Signed-off-by: Ashutosh Mehra --- test/others/libcriu/run.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/others/libcriu/run.sh b/test/others/libcriu/run.sh index 5f692db31..bd92f8544 100755 --- a/test/others/libcriu/run.sh +++ b/test/others/libcriu/run.sh @@ -13,7 +13,7 @@ mkdir -p wdir/i/ echo "== Run tests" export LD_LIBRARY_PATH=. -export PATH="`dirname ${BASH_SOURCE[0]}`/../../:$PATH" +export PATH="`dirname ${BASH_SOURCE[0]}`/../../../criu:$PATH" RESULT=0 @@ -21,6 +21,19 @@ function run_test { echo "== Build $1" if ! make $1; then echo "FAIL build $1" + echo "** Output of $1/test.log" + cat wdir/i/$1/test.log + echo "---------------" + if [ -f wdir/i/$1/dump.log ]; then + echo "** Contents of dump.log" + cat wdir/i/$1/dump.log + echo "---------------" + fi + if [ -f wdir/i/$1/restore.log ]; then + echo "** Contents of restore.log" + cat wdir/i/$1/restore.log + echo "---------------" + fi RESULT=1; else echo "== Test $1" -- cgit v1.2.3