[test-suite] r264044 - [timeit] Properly shift only one item for a boolean option
James Molloy via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 22 05:36:43 PDT 2016
Author: jamesm
Date: Tue Mar 22 07:36:43 2016
New Revision: 264044
URL: http://llvm.org/viewvc/llvm-project?rev=264044&view=rev
Log:
[timeit] Properly shift only one item for a boolean option
This fixes parsing for any subsequent options.
Modified:
test-suite/trunk/tools/timeit.sh
Modified: test-suite/trunk/tools/timeit.sh
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/tools/timeit.sh?rev=264044&r1=264043&r2=264044&view=diff
==============================================================================
--- test-suite/trunk/tools/timeit.sh (original)
+++ test-suite/trunk/tools/timeit.sh Tue Mar 22 07:36:43 2016
@@ -22,7 +22,9 @@ while [[ $1 = -* ]]; do
elif [ $1 = "--chdir" ]; then
cd $2
elif [ $1 = "--append-exitstatus" ]; then
- APPEND_STATUS=1
+ APPEND_STATUS=1
+ shift 1
+ continue
fi
shift 2
done
More information about the llvm-commits
mailing list