aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaschalis Mpeis <paschalis.mpeis@arm.com>2024-11-25 13:13:10 +0000
committerGitHub <noreply@github.com>2024-11-25 13:13:10 +0000
commit957c2ac4f17ab5cc1e4a13c99ed968dcaac1dd91 (patch)
treea09f1bd67944cc7463c63615225eae91ffdc7408
parent4b71b3782d217db0138b701c4514bd2168ca1659 (diff)
downloadllvm-957c2ac4f17ab5cc1e4a13c99ed968dcaac1dd91.zip
llvm-957c2ac4f17ab5cc1e4a13c99ed968dcaac1dd91.tar.gz
llvm-957c2ac4f17ab5cc1e4a13c99ed968dcaac1dd91.tar.bz2
[BOLT] Fix for bughunter.sh in offline mode (#116649)
In offline mode, the script sets 'PASS' variable and does not use it. Surrounding code suggests using 'FAIL' variable instead.
-rwxr-xr-xbolt/utils/bughunter.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bolt/utils/bughunter.sh b/bolt/utils/bughunter.sh
index 49831cd..c5dddc4 100755
--- a/bolt/utils/bughunter.sh
+++ b/bolt/utils/bughunter.sh
@@ -131,7 +131,7 @@ if [[ $FAIL -eq "0" ]]; then
fi
else
echo "Did it pass? Type the return code [0 = pass, 1 = fail]"
- read -n1 PASS
+ read -n1 FAIL
fi
if [[ $FAIL -eq "0" ]] ; then
echo " Warning: optimized binary passes."
@@ -205,7 +205,7 @@ while [[ "$CONTINUE" -ne "0" ]] ; do
echo " OPTIMIZED_BINARY failure=$FAIL"
else
echo "Did it pass? Type the return code [0 = pass, 1 = fail]"
- read -n1 PASS
+ read -n1 FAIL
fi
else
FAIL=1