X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=lava%2Fsystem-tests%2Fdestructive-tests.yml;h=e43b0f2d70a407483acd76fd1c287371c255e1ee;hb=4e9d92412f9615a419e17d6c7da302727c774175;hp=a5668eb1a9662f502851afa46c9f6f5a39fe7ef9;hpb=6b35e57c434006884c10febcd85f8e77b66ae13d;p=lttng-ci.git diff --git a/lava/system-tests/destructive-tests.yml b/lava/system-tests/destructive-tests.yml index a5668eb..e43b0f2 100644 --- a/lava/system-tests/destructive-tests.yml +++ b/lava/system-tests/destructive-tests.yml @@ -2,30 +2,25 @@ metadata: format: Lava-Test Test Definition 1.0 name: lttng-destructive-tests description: "Run root destructive test suite" -install: - deps: - - curl - git-repos: - - url: https://github.com/lttng/lttng-ci - destination: ci - branch: master +params: + JENKINS_BUILD_ID: "invalid_jenkins_build_id" +run: steps: + - apt install -y curl + - git clone https://github.com/lttng/lttng-ci ci - export TMPDIR="/tmp" - systemctl stop systemd-timesyncd.service - - ulimit -c unlimited - mkdir -p coredump - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern -params: - JENKINS_BUILD_ID: "invalid_jenkins_build_id" -run: - steps: + - ulimit -c unlimited - source /root/lttngvenv/activate - pushd /root/lttngvenv/src/lttng-tools - lava-test-case build-test-suite --shell "make" - export LTTNG_ENABLE_DESTRUCTIVE_TESTS="will-break-my-system" - cd tests #Need to check if the file is present for branches where the testcase was not backported - - lava-test-case run-tests --shell "if [ -e root_destructive_tests ]; then prove --verbose --merge --exec '' - < root_destructive_tests; else echo 'root_destructive_tests not found'; fi" + - 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" - popd + - systemctl start systemd-timesyncd.service - tar czf coredump.tar.gz coredump - ./ci/lava/upload_artifact.sh coredump.tar.gz "results/${JENKINS_BUILD_ID}/coredump.tar.gz"