From c967fbdaa2cda260312f73a3f75744ac1ad11176 Mon Sep 17 00:00:00 2001 From: Andrei Vagin Date: Thu, 2 May 2019 19:26:16 -0700 Subject: runsc: move test_app in a separate directory Opensource tools (e. g. https://github.com/fatih/vim-go) can't hanlde more than one golang package in one directory. PiperOrigin-RevId: 246435962 Change-Id: I67487915e3838762424b2d168efc54ae34fb801f --- runsc/container/container_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'runsc/container/container_test.go') diff --git a/runsc/container/container_test.go b/runsc/container/container_test.go index 9458dbb90..269d28448 100644 --- a/runsc/container/container_test.go +++ b/runsc/container/container_test.go @@ -569,7 +569,7 @@ func TestKillPid(t *testing.T) { for _, conf := range configs(overlay) { t.Logf("Running test with conf: %+v", conf) - app, err := testutil.FindFile("runsc/container/test_app") + app, err := testutil.FindFile("runsc/container/test_app/test_app") if err != nil { t.Fatal("error finding test_app:", err) } @@ -792,7 +792,7 @@ func TestUnixDomainSockets(t *testing.T) { } defer outputFile.Close() - app, err := testutil.FindFile("runsc/container/test_app") + app, err := testutil.FindFile("runsc/container/test_app/test_app") if err != nil { t.Fatal("error finding test_app:", err) } @@ -1471,7 +1471,7 @@ func TestRootNotMount(t *testing.T) { t.Skip("race makes test_app not statically linked") } - appSym, err := testutil.FindFile("runsc/container/test_app") + appSym, err := testutil.FindFile("runsc/container/test_app/test_app") if err != nil { t.Fatal("error finding test_app:", err) } @@ -1497,7 +1497,7 @@ func TestRootNotMount(t *testing.T) { } func TestUserLog(t *testing.T) { - app, err := testutil.FindFile("runsc/container/test_app") + app, err := testutil.FindFile("runsc/container/test_app/test_app") if err != nil { t.Fatal("error finding test_app:", err) } -- cgit v1.2.3