From 0ae2602172a7db205e943b7ae511c1d6a19a61cc Mon Sep 17 00:00:00 2001 From: rand00 Date: Tue, 17 Jan 2023 11:18:51 +0100 Subject: [PATCH] packaging/perftest_all.sh: Fixed some bugs and tried to fix that all builds are not gone through - but works by running again?? --- packaging/perftest_all.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) mode change 100644 => 100755 packaging/perftest_all.sh diff --git a/packaging/perftest_all.sh b/packaging/perftest_all.sh old mode 100644 new mode 100755 index d077928..3c6d3e3 --- a/packaging/perftest_all.sh +++ b/packaging/perftest_all.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e @@ -49,7 +49,7 @@ DATA_DIR= CACHE_DIR= CONF_DIR= -while [ $# -gt 1 ]; do +while [ $# -gt 0 ]; do OPT="$1" case "${OPT}" in @@ -101,17 +101,21 @@ get_bin_localpath () { WHERE uuid = '$UUID'" } +TMP_UUIDS=/tmp/perftest_uuids.txt +get_jobs_build-uuids > "$TMP_UUIDS" + while read -r UUID; do BIN="$DATA_DIR"/$(get_bin_localpath "$UUID") BIN_SHA256=$(get_bin_hash "$UUID") - "$CONF_DIR"/upload_hooks/perftest.sh \ + "$CONF_DIR"/upload-hooks/perftest.sh \ --uuid="$UUID" \ --job="$JOB" \ --sha256="$BIN_SHA256" \ --data-dir="$DATA_DIR" \ --cache-dir="$CACHE_DIR" \ "$BIN" -done < <(get_jobs_build-uuids) +done < "$TMP_UUIDS" +info done