Fix tests using invalid ID

These tests are using their name as ID, but subtests add a forward slash
connected to the parent test, and slash (/) is an invalid character for
container IDs.

Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
This commit is contained in:
Phil Estes 2018-04-04 15:28:41 -04:00
parent 45407846f3
commit b769cce904
No known key found for this signature in database
GPG Key ID: 0F386284C03A1162

View File

@ -493,7 +493,7 @@ func testContainerUser(t *testing.T, userstr, expectedOutput string) {
var (
image Image
ctx, cancel = testContext()
id = t.Name()
id = strings.Replace(t.Name(), "/", "_", -1)
)
defer cancel()