Merge pull request #3669 from crosbymichael/crun

Don't search for state.json path in tests
This commit is contained in:
Phil Estes 2019-09-23 13:18:56 -04:00 committed by GitHub
commit 1af133f6c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,9 +164,9 @@ version = 1
t.Fatal(err) t.Fatal(err)
} }
stateJSONPath := filepath.Join(runtimeRoot, testNamespace, id, "state.json") containerPath := filepath.Join(runtimeRoot, testNamespace, id)
if _, err = os.Stat(stateJSONPath); err != nil { if _, err = os.Stat(containerPath); err != nil {
t.Errorf("error while getting stat for %s: %v", stateJSONPath, err) t.Errorf("error while getting stat for %s: %v", containerPath, err)
} }
if err = task.Kill(ctx, syscall.SIGKILL); err != nil { if err = task.Kill(ctx, syscall.SIGKILL); err != nil {