jjb: Add workaround for newer pahole versions with focal kernels
[lttng-ci.git] / scripts / babeltrace-benchmark / benchmark.sh
index c9f579c90300cdf8e3f8eef67ce6f9e968e533da..9a3256b313ad4b0227520094e80a7eb31cd80f20 100755 (executable)
@@ -1,6 +1,6 @@
-#!/bin/bash -exu
+#!/bin/bash
 #
-# Copyright (C) 2019 Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
+# Copyright (C) 2019 Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -15,6 +15,8 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+set -exu
+
 SRC_DIR="$WORKSPACE/src/babeltrace"
 SCRIPT_DIR="$WORKSPACE/src/lttng-ci"
 RESULTS_DIR="$WORKSPACE/results"
@@ -27,6 +29,10 @@ TMPDIR="${VENV}/tmp"
 mkdir -p "$TMPDIR"
 export TMPDIR
 
+function checkout_scripts() {
+       git clone https://github.com/lttng/lttng-ci.git "$SCRIPT_DIR"
+}
+
 function setup_env ()
 {
        mkdir -p "$RESULTS_DIR"
@@ -48,6 +54,7 @@ function generate_report ()
        python "$SCRIPT_PATH" --generate-report --repo-path "$SRC_DIR" --report-name "${RESULTS_DIR}/babeltrace-benchmark.pdf"
 }
 
+checkout_scripts
 setup_env
 run_jobs
 generate_report
This page took 0.022848 seconds and 4 git commands to generate.