LAVA: resync time before uploading result to object store
[lttng-ci.git] / lava / system-tests / destructive-tests.yml
CommitLineData
ee02050f
FD
1metadata:
2 format: Lava-Test Test Definition 1.0
3 name: lttng-destructive-tests
4 description: "Run root destructive test suite"
5install:
6b35e57c
JR
6 deps:
7 - curl
8 git-repos:
9 - url: https://github.com/lttng/lttng-ci
10 destination: ci
11 branch: master
ee02050f
FD
12 steps:
13 - export TMPDIR="/tmp"
ee02050f
FD
14 - systemctl stop systemd-timesyncd.service
15 - ulimit -c unlimited
16 - mkdir -p coredump
17 - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
6b35e57c
JR
18params:
19 JENKINS_BUILD_ID: "invalid_jenkins_build_id"
ee02050f
FD
20run:
21 steps:
22 - source /root/lttngvenv/activate
6b35e57c 23 - pushd /root/lttngvenv/src/lttng-tools
ee02050f
FD
24 - lava-test-case build-test-suite --shell "make"
25 - export LTTNG_ENABLE_DESTRUCTIVE_TESTS="will-break-my-system"
26 - cd tests
27 #Need to check if the file is present for branches where the testcase was not backported
cc2ddcb1 28 - lava-test-case run-tests --shell "if [ -e root_destructive_tests ]; then prove --nocolor --verbose --merge --exec '' - < root_destructive_tests; else echo 'root_destructive_tests not found'; fi"
6b35e57c 29 - popd
e942f820 30 - systemctl start systemd-timesyncd.service
ee02050f 31 - tar czf coredump.tar.gz coredump
6b35e57c 32 - ./ci/lava/upload_artifact.sh coredump.tar.gz "results/${JENKINS_BUILD_ID}/coredump.tar.gz"
This page took 0.023585 seconds and 4 git commands to generate.