452-labs merge requestshttps://gitlab.cs.washington.edu/dwoos/452-labs/-/merge_requests2017-10-30T21:18:48-07:00https://gitlab.cs.washington.edu/dwoos/452-labs/-/merge_requests/6Lock client2017-10-30T21:18:48-07:00Josue RiosLock clienthttps://gitlab.cs.washington.edu/dwoos/452-labs/-/merge_requests/5Forward arguments to `go test` in `bin/run-test`2017-06-06T13:43:15-07:00Cooper JohnsonForward arguments to `go test` in `bin/run-test`To enable race detection (`-race`) or run only specific tests (`-run $test`), it's useful to pass extra arguments to `go test`. Currently this means we must choose between filtering out noise and controlling how the tests are run. This c...To enable race detection (`-race`) or run only specific tests (`-run $test`), it's useful to pass extra arguments to `go test`. Currently this means we must choose between filtering out noise and controlling how the tests are run. This change makes `bin/run-test` forward its arguments (if any) on to `go test`, giving the best of both worlds.
`"$@"` is the safe way to [forward script arguments](https://www.gnu.org/software/bash/manual/html_node/Special-Parameters.html); it is equivalent to `"$1" "$2" "$3"` and so on.