Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #17881

Closed (moved)
(moved)
Open
Created Dec 17, 2015 by cypherpunks@cypherpunks

Use return codes from test programs to simplify test scripts

Forwarding the exit codes from the underlying test programs can simplify the test scripts that encapsulate the test programs.

For example, the switch_id test program checks the user id and returns early when we are not root. The test_switch_id.sh script does the same check which is redunant code if we change the return code in the test program and let the script forward it to the test driver.

Other test scripts can be simplified in a similar way.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking