aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2023-11-22 18:18:19 +0100
committerHans-Peter Nilsson <hp@bitrange.com>2023-11-24 00:21:08 +0100
commit071dadb728d0ed712af26f81fbe470b266a55607 (patch)
treee611154b4106eaca475695f0ce666bebc90b05ad /contrib
parent0ca1e90ae1a3b0ecb4ae90f9b785e618b295a3ff (diff)
contrib/regression/btest-gcc.sh: Simplify option handling.
* btest-gcc.sh (Option handling): Break out shifts from each option alternative.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/regression/btest-gcc.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/regression/btest-gcc.sh b/contrib/regression/btest-gcc.sh
index 22e8f039866..3c031e93709 100755
--- a/contrib/regression/btest-gcc.sh
+++ b/contrib/regression/btest-gcc.sh
@@ -32,12 +32,13 @@ dashj=''
while : ; do
case "$1" in
--add-passes-despite-regression)
- add_passes_despite_regression=1; shift;;
+ add_passes_despite_regression=1;;
-j*)
- dashj=$1; shift;;
+ dashj=$1;;
-*) echo "Invalid option: $1"; exit 2;;
*) break;;
esac
+ shift
done
# TARGET is the target triplet. It should be the same one as used in