Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for unsetEnv (0.12 sec)

  1. cmd/update_test.go

    		}
    		if !strings.Contains(str, expectedStr) {
    			t.Errorf("Test %d: expected: %s, got: %s", i+1, expectedStr, str)
    		}
    		globalIsCICD = sci
    		os.Unsetenv("MARATHON_APP_LABEL_DCOS_PACKAGE_VERSION")
    		os.Unsetenv(testCase.envName)
    	}
    }
    
    // Tests if the environment we are running is in DCOS.
    func TestIsDCOS(t *testing.T) {
    	sci := globalIsCICD
    	globalIsCICD = false
    	defer func() {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Mar 09 03:07:08 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. internal/kms/config.go

    	if isPresent(EnvKMSSecretKey) && os.Getenv(EnvKMSSecretKey) == "" {
    		os.Unsetenv(EnvKMSSecretKey)
    	}
    	if isPresent(EnvKMSSecretKeyFile) {
    		if filename := os.Getenv(EnvKMSSecretKeyFile); filename == "" {
    			os.Unsetenv(EnvKMSSecretKeyFile)
    		} else if _, err := os.Stat(filename); errors.Is(err, os.ErrNotExist) {
    			os.Unsetenv(EnvKMSSecretKeyFile)
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 12 14:31:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util_test.cc

    namespace {
    
    using ::testing::IsNull;
    
    TEST(DumpMlirModuleTest, NoEnvPrefix) {
      mlir::MLIRContext context;
      mlir::OwningOpRef<mlir::ModuleOp> module_ref =
          mlir::ModuleOp::create(mlir::UnknownLoc::get(&context));
      unsetenv("TF_DUMP_GRAPH_PREFIX");
    
      std::string filepath = DumpMlirOpToFile("module", module_ref.get());
      EXPECT_EQ(filepath, "(TF_DUMP_GRAPH_PREFIX not specified)");
    }
    
    TEST(DumpMlirModuleTest, LogInfo) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 18 13:40:21 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. src/cmd/go/internal/work/security_test.go

    	}
    	os.Setenv("CGO_TEST_ALLOW", "-disallow")
    	if err := checkCompilerFlags("TEST", "test", []string{"-disallow"}); err != nil {
    		t.Fatalf("unexpected error for -disallow with CGO_TEST_ALLOW=-disallow: %v", err)
    	}
    	os.Unsetenv("CGO_TEST_ALLOW")
    
    	if err := checkCompilerFlags("TEST", "test", []string{"-Wall"}); err != nil {
    		t.Fatalf("unexpected error for -Wall: %v", err)
    	}
    	os.Setenv("CGO_TEST_DISALLOW", "-Wall")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:47:34 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. src/cmd/go/go_test.go

    		os.Setenv("GODEBUG", os.Getenv("GODEBUG")+reducedLimit)
    	}
    
    	// Don't let these environment variables confuse the test.
    	os.Setenv("GOENV", "off")
    	os.Unsetenv("GOFLAGS")
    	os.Unsetenv("GOBIN")
    	os.Unsetenv("GOPATH")
    	os.Unsetenv("GIT_ALLOW_PROTOCOL")
    	os.Setenv("HOME", "/test-go-home-does-not-exist")
    	// On some systems the default C compiler is ccache.
    	// Setting HOME to a non-existent directory will break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  6. src/testing/testing_test.go

    	}
    
    	for _, test := range tests {
    		if test.initialValueExists {
    			if err := os.Setenv(test.key, test.initialValue); err != nil {
    				t.Fatalf("unable to set env: got %v", err)
    			}
    		} else {
    			os.Unsetenv(test.key)
    		}
    
    		t.Run(test.name, func(t *testing.T) {
    			t.Setenv(test.key, test.newValue)
    			if os.Getenv(test.key) != test.newValue {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/preflight/checks_test.go

    func resetProxyEnv(t *testing.T) {
    	for _, e := range os.Environ() {
    		key, value, _ := strings.Cut(e, "=")
    		if strings.HasSuffix(strings.ToLower(key), "_proxy") {
    			t.Cleanup(func() { os.Setenv(key, value) })
    			os.Unsetenv(key)
    		}
    	}
    
    	t.Setenv("HTTP_PROXY", "http://proxy.example.com:3128")
    	t.Setenv("HTTPS_PROXY", "https://proxy.example.com:3128")
    	t.Setenv("NO_PROXY", "example.com,10.0.0.0/8,2001:db8::/48")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  8. src/cmd/dist/build.go

    	// always go to GOROOT/bin anyway.
    	os.Setenv("GOBIN", gorootBin)
    
    	// Make the environment more predictable.
    	os.Setenv("LANG", "C")
    	os.Setenv("LANGUAGE", "en_US.UTF8")
    	os.Unsetenv("GO111MODULE")
    	os.Setenv("GOENV", "off")
    	os.Unsetenv("GOFLAGS")
    	os.Setenv("GOWORK", "off")
    
    	workdir = xworkdir()
    	if err := os.WriteFile(pathf("%s/go.mod", workdir), []byte("module bootstrap"), 0666); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  9. cmd/common-main.go

    		}
    	}
    	return m
    }
    
    func initConsoleServer() (*consoleapi.Server, error) {
    	// unset all console_ environment variables.
    	for _, cenv := range env.List(consolePrefix) {
    		os.Unsetenv(cenv)
    	}
    
    	// enable all console environment variables
    	minioConfigToConsoleFeatures()
    
    	// set certs dir to minio directory
    	consoleCerts.GlobalCertsDir = &consoleCerts.ConfigDir{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 11:58:12 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  10. src/cmd/go/internal/toolchain/select.go

    	if target := os.Getenv(targetEnv); target != "" && TestVersionSwitch != "loop" {
    		if gover.LocalToolchain() != target {
    			base.Fatalf("toolchain %v invoked to provide %v", gover.LocalToolchain(), target)
    		}
    		os.Unsetenv(targetEnv)
    
    		// Note: It is tempting to check that if gotoolchain != "local"
    		// then target == gotoolchain here, as a sanity check that
    		// the child has made the same version determination as the parent.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:25:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
Back to top