Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 251 for GetEnv (0.28 sec)

  1. src/syscall/exec_linux_test.go

    // has forced / to be shared
    func TestUnshareMountNameSpace(t *testing.T) {
    	const mountNotSupported = "mount is not supported: " // Output prefix indicating a test skip.
    	if os.Getenv("GO_WANT_HELPER_PROCESS") == "1" {
    		dir := flag.Args()[0]
    		err := syscall.Mount("none", dir, "proc", 0, "")
    		if testenv.SyscallIsNotSupported(err) {
    			fmt.Print(mountNotSupported, err)
    		} else if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/test_cache_inputs.txt

    	if err != nil {
    		t.Fatal(err)
    	}
    	if !ps.Success() {
    		t.Fatalf("script failed: %v", err)
    	}
    }
    
    func TestExternalFile(t *testing.T) {
    	os.Open(os.Getenv("TEST_EXTERNAL_FILE"))
    	_, err := os.Stat(os.Getenv("TEST_EXTERNAL_FILE"))
    	if err != nil {
    		t.Fatal(err)
    	}
    }
    
    func TestOSArgs(t *testing.T) {
    	t.Log(os.Args)
    }
    
    func TestBenchtime(t *testing.T) {
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 22:23:53 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/EnvVariableInjection.groovy

            // We can't "unset" the variable with the API executer provides, but it isn't necessary, thanks to the filtering in
            // build-logic/jvm/src/main/kotlin/gradlebuild/propagated-env-variables.kt
            if (System.getenv().containsKey(key)) {
                throw new IllegalStateException("Environment variable $key is present for this process and may affect tests")
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. src/net/mockserver_test.go

    		}
    	}, nil
    }
    
    func init() {
    	if os.Getenv("GO_NET_TEST_TRANSFER") == "" {
    		return
    	}
    	defer os.Exit(0)
    
    	f := os.NewFile(uintptr(3), "splice-test-conn")
    	defer f.Close()
    
    	conn, err := FileConn(f)
    	if err != nil {
    		log.Fatal(err)
    	}
    
    	var chunkSize int
    	if chunkSize, err = strconv.Atoi(os.Getenv("GO_NET_TEST_TRANSFER_CHUNK_SIZE")); err != nil {
    		log.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. operator/cmd/mesh/shared.go

    }
    
    func (w *writerPrinter) Println(str string) {
    	_, _ = fmt.Fprintln(w.writer, str)
    }
    
    func refreshGoldenFiles() bool {
    	ev := os.Getenv("REFRESH_GOLDEN")
    	return ev == "true" || ev == "1"
    }
    
    func kubeBuilderInstalled() bool {
    	ev := os.Getenv("KUBEBUILDER")
    	return ev == "true" || ev == "1"
    }
    
    // Confirm waits for a user to confirm with the supplied message.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 29 02:29:02 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. testing/internal-testing/src/main/groovy/org/gradle/test/preconditions/UnitTestPreconditions.groovy

            @Override
            boolean isSatisfied() throws Exception {
                return System.getenv("RUNNING_ON_REMOTE_AGENT") != null
            }
        }
    
        static final class NotInGradleceptionBuild implements TestPrecondition {
            @Override
            boolean isSatisfied() throws Exception {
                return System.getenv("BUILD_TYPE_ID")?.contains("Check_Gradleception") != true
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 03:26:38 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  7. tests/helper_test.go

    	if isTiDB() {
    		t.Skipf("This test case skipped, because of TiDB '%s'", reason)
    	}
    }
    
    func isTiDB() bool {
    	return os.Getenv("GORM_DIALECT") == "tidb"
    }
    
    func isMysql() bool {
    	return os.Getenv("GORM_DIALECT") == "mysql"
    }
    
    func isSqlite() bool {
    	return os.Getenv("GORM_DIALECT") == "sqlite"
    }
    
    func db(unscoped bool) *gorm.DB {
    	if unscoped {
    		return DB.Unscoped()
    	} else {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. pdm_build.py

    import os
    from typing import Any, Dict, List
    
    from pdm.backend.hooks import Context
    
    TIANGOLO_BUILD_PACKAGE = os.getenv("TIANGOLO_BUILD_PACKAGE", "fastapi")
    
    
    def pdm_build_initialize(context: Context) -> None:
        metadata = context.config.metadata
        # Get custom config for the current package, from the env var
        config: Dict[str, Any] = context.config.data["tool"]["tiangolo"][
            "_internal-slim-build"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 30 06:38:13 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/util/ResourceUtil.java

            final String appType = System.getenv(FESS_APP_TYPE);
            if (StringUtil.isNotBlank(appType)) {
                return appType;
            }
            return StringUtil.EMPTY;
        }
    
        public static OptionalEntity<String> getOverrideConfPath() {
            if (FESS_APP_DOCKER.equalsIgnoreCase(getAppType())) {
                final String confPath = System.getenv(FESS_OVERRIDE_CONF_PATH);
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  10. src/testing/internal/testdeps/deps.go

    	return ImportPath
    }
    
    // testLog implements testlog.Interface, logging actions by package os.
    type testLog struct {
    	mu  sync.Mutex
    	w   *bufio.Writer
    	set bool
    }
    
    func (l *testLog) Getenv(key string) {
    	l.add("getenv", key)
    }
    
    func (l *testLog) Open(name string) {
    	l.add("open", name)
    }
    
    func (l *testLog) Stat(name string) {
    	l.add("stat", name)
    }
    
    func (l *testLog) Chdir(name string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top