jjb: lava: clone benchmarking code to temporary directory
[lttng-ci.git] / lava / baremetal-tests / raw-syscall-getpid.yml
index 6d6e96dce2cee6819c86f203ca745dd431ab74fb..ef4057f7fc85d044d4ad728e800ea59881f25b2e 100644 (file)
@@ -10,27 +10,26 @@ install:
                 - python3-pandas
                 - python3-numpy
         git-repos:
-                - url: https://github.com/frdeso/syscall-bench-it.git
-                  destination: /tmp/benchmarks
-                  branch: master
                 - url: https://github.com/lttng/lttng-ci
                   destination: ci
                   branch: master
         steps:
                 - export TMPDIR="/tmp"
+                - export BENCHMARK_DIR=$(mktemp --directory)
                 - ulimit -c unlimited
                 - mkdir -p coredump
                 - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
 run:
         steps:
                 - source /root/lttngvenv/activate
-                - cd /tmp/benchmarks
+                - git clone https://github.com/frdeso/syscall-bench-it.git $BENCHMARK_DIR
+                - cd $BENCHMARK_DIR
                 - lava-test-case build-benchmarks --shell "make"
                 - lava-test-case run-benchmarks --shell "./run.sh raw-syscall-getpid sys_getpid"
                 - lava-test-case-attach run-benchmarks "./results.csv"
                 - cd -
                 - cd ci
-                - python3 ./scripts/lttng-baremetal-tests/parse-results.py /tmp/benchmarks/results.csv
+                - python3 ./scripts/lttng-baremetal-tests/parse-results.py $BENCHMARK_DIR/results.csv
                 - mv ./processed_results.csv ../processed_results_raw_syscall_getpid.csv
                 - cd -
                 - tar czf coredump.tar.gz coredump
This page took 0.02362 seconds and 4 git commands to generate.