mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix IsRunningWithVFS1() on the runsc-based test runner.
Updates #1035 PiperOrigin-RevId: 312736450
This commit is contained in:
@@ -341,11 +341,13 @@ func runTestCaseRunsc(testBin string, tc gtest.TestCase, t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// Set environment variables that indicate we are
|
||||
// running in gVisor with the given platform and network.
|
||||
// Set environment variables that indicate we are running in gVisor with
|
||||
// the given platform, network, and filesystem stack.
|
||||
// TODO(gvisor.dev/issue/1487): Update this when the runner supports VFS2.
|
||||
platformVar := "TEST_ON_GVISOR"
|
||||
networkVar := "GVISOR_NETWORK"
|
||||
env := append(os.Environ(), platformVar+"="+*platform, networkVar+"="+*network)
|
||||
vfsVar := "GVISOR_VFS"
|
||||
env := append(os.Environ(), platformVar+"="+*platform, networkVar+"="+*network, vfsVar+"=VFS1")
|
||||
|
||||
// Remove env variables that cause the gunit binary to write output
|
||||
// files, since they will stomp on eachother, and on the output files
|
||||
|
||||
Reference in New Issue
Block a user