Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • 4 452-labs
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Doug Woos
  • 452-labs
  • Merge requests
  • !5

Forward arguments to `go test` in `bin/run-test`

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Cooper Johnson requested to merge cooperdj/452-labs:patch-1 into master May 24, 2017
  • Overview 1
  • Commits 1
  • Changes 1

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; it is equivalent to "$1" "$2" "$3" and so on.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: patch-1