Skip to content
Permalink
Browse files

Merge pull request #3983 from datuanmac/fix-remove_unused_functions

Remove unused functions
  • Loading branch information...
iaguis committed Jun 5, 2019
2 parents 8e9fa7a + a40beae commit cdf88aaa216a711ac2afb63ecf01d21b8ae14418
Showing with 0 additions and 16 deletions.
  1. +0 −16 tests/rkt_tests.go
@@ -319,22 +319,6 @@ func patchImportAndFetchHash(image string, patches []string, t *testing.T, ctx *
return importImageAndFetchHash(t, ctx, "", imagePath)
}

func patchImportAndRun(image string, patches []string, t *testing.T, ctx *testutils.RktRunCtx) {
imagePath := patchTestACI(image, patches...)
defer os.Remove(imagePath)

cmd := fmt.Sprintf("%s --insecure-options=image run %s", ctx.Cmd(), imagePath)
spawnAndWaitOrFail(t, cmd, 0)
}

func patchImportAndPrepare(image string, patches []string, t *testing.T, ctx *testutils.RktRunCtx) {
imagePath := patchTestACI(image, patches...)
defer os.Remove(imagePath)

cmd := fmt.Sprintf("%s --insecure-options=image prepare %s", ctx.Cmd(), imagePath)
spawnAndWaitOrFail(t, cmd, 0)
}

func runGC(t *testing.T, ctx *testutils.RktRunCtx) {
cmd := fmt.Sprintf("%s gc --grace-period=0s", ctx.Cmd())
spawnAndWaitOrFail(t, cmd, 0)

0 comments on commit cdf88aa

Please sign in to comment.
You can’t perform that action at this time.