Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 348 for sdtin (0.04 sec)

  1. operator/pkg/manifest/shared_test.go

    			for _, ol := range tt.overlays {
    				filename := filepath.Join(inDir, ol+".yaml")
    				if tt.stdin {
    					b, err := os.ReadFile(filename)
    					if err != nil {
    						t.Fatalf("os.ReadFile() error = %v, filenaem: %v", err, filename)
    					}
    					if _, err := stdinReader.Write(b); err != nil {
    						t.Fatalf("failed to populate fake sdtin")
    					}
    					filenames = append(filenames, "-")
    				} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 23 16:28:53 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  2. platforms/core-runtime/daemon-services/src/main/java/org/gradle/internal/daemon/clientinput/ClientInputForwarder.java

                }
            };
    
            InputStream previousStdin = System.in;
            try {
                System.setIn(stdInStream);
                return action.apply(stdinHandler);
            } finally {
                System.setIn(previousStdin);
                IoActions.closeQuietly(stdInStream);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. tools/istio-iptables/pkg/dependencies/stub.go

    	}, nil
    }
    
    func (s *DependenciesStub) execute(quietly bool, cmd constants.IptablesCmd, iptVer *IptablesVersion, stdin io.ReadSeeker, args ...string) {
    	// We are either getting iptables rules as a `stdin` blob in `iptables-save` format (if this is a restore)
    	if stdin != nil {
    		buf := bufio.NewScanner(stdin)
    		for buf.Scan() {
    			stdincmd := buf.Text()
    			s.ExecutedAll = append(s.ExecutedAll, stdincmd)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 17:46:23 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. src/runtime/testdata/testfds/main.go

    	if err != nil {
    		log.Fatalf("os.Open failed: %s", err)
    	}
    	defer f.Close()
    	b, err := io.ReadAll(os.Stdin)
    	if err != nil {
    		log.Fatalf("io.ReadAll(os.Stdin) failed: %s", err)
    	}
    	if len(b) != 0 {
    		log.Fatalf("io.ReadAll(os.Stdin) returned non-nil: %x", b)
    	}
    	fmt.Fprintf(os.Stdout, "stdout\n")
    	fmt.Fprintf(os.Stderr, "stderr\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 25 16:33:33 UTC 2023
    - 642 bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/test_timeout_stdin.txt

    [short] skip 'runs a test that hangs until its WaitDelay expires'
    
    ! go test -v -timeout=1m .
    
    	# After the test process itself prints PASS and exits,
    	# the kernel closes its stdin pipe to to the orphaned subprocess.
    	# At that point, we expect the subprocess to print 'stdin closed'
    	# and periodically log to stderr until the WaitDelay expires.
    	#
    	# Once the WaitDelay expires, the copying goroutine for 'go test' stops and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 02 20:23:27 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. platforms/core-runtime/daemon-server/src/main/java/org/gradle/launcher/daemon/bootstrap/DaemonMain.java

            if (args.length != 1) {
                invalidArgs("Following arguments are required: <gradle-version>");
            }
    
            // Read configuration from stdin
            List<String> startupOpts;
            File gradleHomeDir;
            File daemonBaseDir;
            int idleTimeoutMs;
            int periodicCheckIntervalMs;
            boolean singleUse;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/util/proxy/streamtranslator_test.go

    		ctx, err := createSPDYServerStreams(w, req, Options{
    			Stdin:  true,
    			Stdout: true,
    		})
    		if err != nil {
    			t.Errorf("error on createHTTPStreams: %v", err)
    			return
    		}
    		defer ctx.conn.Close()
    		// Loopback STDIN data onto STDOUT stream.
    		_, err = io.Copy(ctx.stdoutStream, ctx.stdinStream)
    		if err != nil {
    			t.Fatalf("error copying STDIN to STDOUT: %v", err)
    		}
    
    	}))
    	defer spdyServer.Close()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 27 23:21:55 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  8. pkg/client/tests/remotecommand_test.go

    		},
    		{
    			TestName:        "in/out/err",
    			Stdin:           "a",
    			Stdout:          "b",
    			Stderr:          "c",
    			MessageCount:    100,
    			ClientProtocols: []string{remotecommandconsts.StreamProtocolV2Name},
    			ServerProtocols: []string{remotecommandconsts.StreamProtocolV2Name},
    		},
    		{
    			TestName:        "oversized stdin",
    			Stdin:           strings.Repeat("a", 20*1024*1024),
    			Stdout:          "b",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 06:08:18 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  9. src/cmd/go/terminal_test.go

    	// parent has finished reading from the PTY, at which point we unblock the
    	// child by closing its stdin pipe.
    	stdin, err := cmd.StdinPipe()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	t.Logf("running %s", cmd)
    	err = cmd.Start()
    	if err != nil {
    		t.Fatalf("starting subprocess: %s", err)
    	}
    	w.Close()
    	t.Cleanup(func() {
    		stdin.Close()
    		if err := cmd.Wait(); err != nil {
    			t.Errorf("suprocess failed with: %s", err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 07 18:18:50 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/parameters/ConsumerOperationParameters.java

            public Builder setColorOutput(Boolean colorOutput) {
                this.colorOutput = colorOutput;
                return this;
            }
    
            public Builder setStdin(InputStream stdin) {
                this.stdin = stdin;
                return this;
            }
    
            public Builder setJavaHome(File javaHome) {
                validateJavaHome(javaHome);
                this.javaHome = javaHome;
                return this;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 19 19:46:37 UTC 2023
    - 16.3K bytes
    - Viewed (0)
Back to top