Fix: set ulimit when running test
[lttng-ci.git] / lava / system-tests / destructive-tests.yml
index 32150e0f87a247c3277b821025396c659f25f8cf..571cc6e8e3d2680e1cb1d599f3490677ab117143 100644 (file)
@@ -3,22 +3,30 @@ metadata:
         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
         steps:
                 - export TMPDIR="/tmp"
-                - cd
                 - 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
-                - cd /root/lttngvenv/src/lttng-tools
+                - 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"
-                - cd
+                - 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
-                - lava-test-case-attach run-tests coredump.tar.gz
+                - ./ci/lava/upload_artifact.sh coredump.tar.gz "results/${JENKINS_BUILD_ID}/coredump.tar.gz"
This page took 0.024762 seconds and 4 git commands to generate.