Commit 69f6a479 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

jenkins: collect an report for each run

Now zdtm.py can construct an report which contains all required
inforamtion for investigating a problem. This patch adds support
of this functionality to jenkins scripts.
Signed-off-by: 's avatarAndrew Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 37d90574
...@@ -2,7 +2,5 @@ ...@@ -2,7 +2,5 @@
set -e set -e
source `dirname $0`/criu-lib.sh source `dirname $0`/criu-lib.sh
prep prep
mkdir -p test/dump mount_tmpfs_to_dump
mount -t tmpfs dump test/dump ./test/zdtm.py run --all --report dump/report --parallel 4 --iter 3 -x 'maps04' || fail
cd test
./zdtm.py run --all --parallel 4 --iter 3 -x 'maps04' || fail
...@@ -9,6 +9,16 @@ function prep() ...@@ -9,6 +9,16 @@ function prep()
make -j 4 && make -j 4 &&
make -j 4 -C test/zdtm/live && make -j 4 -C test/zdtm/live &&
make -C test zdtm_ct && make -C test zdtm_ct &&
mkdir -p test/dump/report &&
true
}
function mount_tmpfs_to_dump()
{
mkdir -p test/dump &&
mount -t tmpfs criu_dump test/dump &&
mkdir -p test/dump/report &&
true true
} }
...@@ -18,5 +28,6 @@ function fail() ...@@ -18,5 +28,6 @@ function fail()
ps axf > ps.log ps axf > ps.log
cat /sys/kernel/debug/tracing/trace > trace.log cat /sys/kernel/debug/tracing/trace > trace.log
tar -czf /home/`basename $0`-${GIT_COMMIT}-$(date +%m%d%H%M).tar.gz . tar -czf /home/`basename $0`-${GIT_COMMIT}-$(date +%m%d%H%M).tar.gz .
tar -czf report.tar.gz -C test/dump report
exit 1 exit 1
} }
...@@ -2,7 +2,5 @@ ...@@ -2,7 +2,5 @@
set -e set -e
source `dirname $0`/criu-lib.sh source `dirname $0`/criu-lib.sh
prep prep
mkdir -p test/dump mount_tmpfs_to_dump
mount -t tmpfs dump test/dump ./test/zdtm.py run --all --report test/dump/report --sibling --parallel 4 || fail
cd test
./zdtm.py run --all --sibling --parallel 4 || fail
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment