Skip to content

Commit b30a8f3

Browse files
authored
Merge pull request #162 from rust-lang/fix/test-script
Fix test.sh --build
2 parents 4210fd4 + 889c402 commit b30a8f3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ flags=
1818
gcc_master_branch=1
1919
channel="debug"
2020
func=all
21+
build_only=0
2122

2223
while [[ $# -gt 0 ]]; do
2324
case $1 in
@@ -72,6 +73,10 @@ while [[ $# -gt 0 ]]; do
7273
func=build_sysroot
7374
shift
7475
;;
76+
"--build")
77+
build_only=1
78+
shift
79+
;;
7580
*)
7681
echo "Unknown option $1"
7782
exit 1
@@ -89,7 +94,7 @@ else
8994
cargo rustc $flags
9095
fi
9196

92-
if [[ "$1" == "--build" ]]; then
97+
if (( $build_only == 1 )); then
9398
exit
9499
fi
95100

0 commit comments

Comments
 (0)