Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
tests: Show uid+gid when running unit tests
Browse files Browse the repository at this point in the history
Display the user ID, group ID and the corresponding effective IDs at
the start of a unit test run.

Partially fixes #774.

Signed-off-by: James O. D. Hunt <[email protected]>
  • Loading branch information
jodh-intel committed Oct 30, 2017
1 parent a94e58b commit ba52c19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ func init() {
panic("ERROR: invalid build: defaultRuntimeConfiguration not set")
}

fmt.Printf("INFO: running as actual user %v (effective %v), actual group %v (effective %v)\n",
os.Getuid(), os.Geteuid(), os.Getgid(), os.Getegid())

fmt.Printf("INFO: switching to fake virtcontainers implementation for testing\n")
vci = testingImpl

Expand Down

0 comments on commit ba52c19

Please sign in to comment.