diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2021-07-30 13:14:10 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2021-07-30 13:14:10 +0000 |
commit | b4980ba8c51c013dde0c63984ed4620f50b5442d (patch) | |
tree | cf627f8405eb60e5dd12739300a6b3338ae06360 | |
parent | 9e70a54bf1068420934c509c21dcbbe76b1b26cc (diff) |
run.sh: Speed up checking that SPEC install is up-to-date
Change-Id: Idbc66ef292e9a26326b2f2fb959516276d771412
-rwxr-xr-x | run.sh | 36 |
1 files changed, 17 insertions, 19 deletions
@@ -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 |