Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for CombinedOutput (0.13 sec)

  1. src/cmd/addr2line/addr2line_test.go

    	os.Exit(m.Run())
    }
    
    func loadSyms(t *testing.T, dbgExePath string) map[string]string {
    	cmd := testenv.Command(t, testenv.GoToolPath(t), "tool", "nm", dbgExePath)
    	out, err := cmd.CombinedOutput()
    	if err != nil {
    		t.Fatalf("%v: %v\n%s", cmd, err, string(out))
    	}
    	syms := make(map[string]string)
    	scanner := bufio.NewScanner(bytes.NewReader(out))
    	for scanner.Scan() {
    		f := strings.Fields(scanner.Text())
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Sep 06 13:23:48 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. cni/pkg/iptables/iptables_e2e_test.go

    		assert.NoError(t, err)
    		_ = os.Mkdir("/run", 0o777)
    		_ = mountns.BindMount(xtables, "/run/xtables.lock")
    	})
    }
    
    func iptablesSave(t *testing.T) string {
    	res, err := exec.Command("iptables-save").CombinedOutput()
    	assert.NoError(t, err)
    	return string(res)
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Oct 15 15:39:28 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. misc/ios/detect.go

    	return exec.Command("security", "cms", "-D", "-i", string(fname))
    }
    
    func plistExtract(fname string, path string) ([]byte, error) {
    	out, err := exec.Command("/usr/libexec/PlistBuddy", "-c", "Print "+path, fname).CombinedOutput()
    	if err != nil {
    		return nil, err
    	}
    	return bytes.TrimSpace(out), nil
    }
    
    func getLines(cmd *exec.Cmd) [][]byte {
    	out := output(cmd)
    	lines := bytes.Split(out, []byte("\n"))
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 19 23:33:30 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  4. misc/ios/go_ios_exec.go

    	return nil
    }
    
    func installSimulator(appdir string) error {
    	cmd := exec.Command(
    		"xcrun", "simctl", "install",
    		"booted", // Install to the booted simulator.
    		appdir,
    	)
    	if out, err := cmd.CombinedOutput(); err != nil {
    		os.Stderr.Write(out)
    		return fmt.Errorf("xcrun simctl install booted %q: %v", appdir, err)
    	}
    	return nil
    }
    
    func runSimulator(appdir, bundleID string, args []string) error {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Jun 18 16:32:49 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  5. misc/go_android_exec/main.go

    	exitCode, err2 := filter.Finish()
    
    	if err != nil {
    		return 0, fmt.Errorf("adb exec-out %s: %v", args, err)
    	}
    	return exitCode, err2
    }
    
    func adb(args ...string) error {
    	if out, err := adbCmd(args...).CombinedOutput(); err != nil {
    		fmt.Fprintf(os.Stderr, "adb %s\n%s", strings.Join(args, " "), out)
    		return err
    	}
    	return nil
    }
    
    func adbCmd(args ...string) *exec.Cmd {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 21 17:46:57 UTC 2023
    - 15.3K bytes
    - Viewed (0)
Back to top