Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
4
452-labs
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Doug Woos
  • 452-labs
  • Merge Requests
  • !5

Merged
Opened May 24, 2017 by Cooper Johnson@cooperdjContributor

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

  • 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
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: dwoos/452-labs!5
Source branch: patch-1