[CRIU] [PATCH] jenkins: call fail() in a error case

Andrey Vagin avagin at gmail.com
Wed Oct 28 01:29:58 PDT 2015


From: Andrey Vagin <avagin at openvz.org>

fail() saves all files in an archive for further investigations.

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 test/jenkins/criu-iter.sh    | 2 +-
 test/jenkins/criu-sibling.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/jenkins/criu-iter.sh b/test/jenkins/criu-iter.sh
index 6d1b27b..bce1fc4 100644
--- a/test/jenkins/criu-iter.sh
+++ b/test/jenkins/criu-iter.sh
@@ -5,4 +5,4 @@ prep
 mkdir -p test/dump
 mount -t tmpfs dump test/dump
 cd test
-./zdtm.py run --all --parallel 4 --iter 3 -x 'maps04'
+./zdtm.py run --all --parallel 4 --iter 3 -x 'maps04' || fail
diff --git a/test/jenkins/criu-sibling.sh b/test/jenkins/criu-sibling.sh
index 17793e4..22417ac 100644
--- a/test/jenkins/criu-sibling.sh
+++ b/test/jenkins/criu-sibling.sh
@@ -5,4 +5,4 @@ prep
 mkdir -p test/dump
 mount -t tmpfs dump test/dump
 cd test
-./zdtm.py run --all --sibling --parallel 4
+./zdtm.py run --all --sibling --parallel 4 || fail
-- 
2.4.3



More information about the CRIU mailing list