aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-07-30 13:14:10 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-07-30 13:14:10 +0000
commitb4980ba8c51c013dde0c63984ed4620f50b5442d (patch)
treecf627f8405eb60e5dd12739300a6b3338ae06360
parent9e70a54bf1068420934c509c21dcbbe76b1b26cc (diff)
run.sh: Speed up checking that SPEC install is up-to-date
Change-Id: Idbc66ef292e9a26326b2f2fb959516276d771412
-rwxr-xr-xrun.sh36
1 files changed, 17 insertions, 19 deletions
diff --git a/run.sh b/run.sh
index c7a95dd..bc1e4d0 100755
--- a/run.sh
+++ b/run.sh
@@ -226,25 +226,23 @@ sha1=$(git ls-remote ssh://dev-private-git.linaro.org/restricted-benchmarks/CPU2
pids=()
for cpu in "${cpus[@]}"; do
- (
- delete=$forceinstall
- if [ -d $installdir/cpu2006-$hw_tag-$cpu ] \
- && [ x"$(git -C $installdir/cpu2006-$hw_tag-$cpu rev-parse HEAD)" \
- != x"$sha1" ]; then
- delete=true
- fi
- if $delete; then
- rm -rf ${installdir}/cpu2006-$hw_tag-$cpu
- fi
- if [ ! -d ${installdir}/cpu2006-$hw_tag-$cpu ]; then
- ${mydir}/spec2xxx-install -v \
- -d ${installdir}/cpu2006-$hw_tag-$cpu \
- -s cpu2006
- fi
- ) &
- pids+=($!)
- # Avoid bashing on the git server too much
- sleep 10
+ delete=$forceinstall
+ if [ -d $installdir/cpu2006-$hw_tag-$cpu ] \
+ && [ x"$(git -C $installdir/cpu2006-$hw_tag-$cpu rev-parse HEAD)" \
+ != x"$sha1" ]; then
+ delete=true
+ fi
+ if $delete; then
+ rm -rf ${installdir}/cpu2006-$hw_tag-$cpu
+ fi
+ if [ ! -d ${installdir}/cpu2006-$hw_tag-$cpu ]; then
+ ${mydir}/spec2xxx-install -v \
+ -d ${installdir}/cpu2006-$hw_tag-$cpu \
+ -s cpu2006 &
+ pids+=($!)
+ # Avoid bashing on the git server too much
+ sleep 10
+ fi
done
status=0