Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 57 for ExitError (0.15 sec)

  1. pkg/kubelet/kubelet_server_journal.go

    		return
    	}
    	cmd := exec.CommandContext(ctx, cmdStr, args...)
    	cmd.Stdout = w
    	cmd.Stderr = w
    
    	if err := cmd.Run(); err != nil {
    		if _, ok := err.(*exec.ExitError); ok {
    			return
    		}
    		if previousBoot == 0 {
    			fmt.Fprintf(w, "\nerror: journal output not available\n")
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 26 18:56:28 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  2. src/os/signal/signal_test.go

    		if err == nil {
    			if len(out) > 0 && !lost {
    				t.Errorf("iteration %d: unexpected output", i)
    			}
    		} else {
    			if ee, ok := err.(*exec.ExitError); !ok {
    				t.Errorf("iteration %d: error (%v) has type %T; expected exec.ExitError", i, err, err)
    			} else if ws, ok := ee.Sys().(syscall.WaitStatus); !ok {
    				t.Errorf("iteration %d: error.Sys (%v) has type %T; expected syscall.WaitStatus", i, ee.Sys(), ee.Sys())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 15:34:56 UTC 2023
    - 27.2K bytes
    - Viewed (0)
  3. api/go1.12.txt

    pkg os, const ModeType = 2401763328
    pkg os, func UserHomeDir() (string, error)
    pkg os, method (*File) SyscallConn() (syscall.RawConn, error)
    pkg os, method (*ProcessState) ExitCode() int
    pkg os/exec, method (ExitError) ExitCode() int
    pkg reflect, method (*MapIter) Key() Value
    pkg reflect, method (*MapIter) Next() bool
    pkg reflect, method (*MapIter) Value() Value
    pkg reflect, method (Value) MapRange() *MapIter
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 02 21:21:53 UTC 2019
    - 13.5K bytes
    - Viewed (0)
  4. src/cmd/cover/cover_test.go

    	coverProfile := filepath.Join(testdata, "profile.cov")
    	cmd := testenv.Command(t, testcover(t), "-func", coverProfile)
    	out, err := cmd.Output()
    	if err != nil {
    		if ee, ok := err.(*exec.ExitError); ok {
    			t.Logf("%s", ee.Stderr)
    		}
    		t.Fatal(err)
    	}
    
    	if got, err := regexp.Match(".*total:.*100.0.*", out); err != nil || !got {
    		t.Logf("%s", out)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:28 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  5. misc/go_android_exec/main.go

    	}
    	cmd := exec.Command(goTool, "list", "-e", "-f", "{{.ImportPath}}:{{.Standard}}{{with .Module}}:{{.Path}}:{{.Dir}}{{end}}", ".")
    	out, err := cmd.Output()
    	if err != nil {
    		if ee, ok := err.(*exec.ExitError); ok && len(ee.Stderr) > 0 {
    			return errorf("%v: %s", cmd, ee.Stderr)
    		}
    		return errorf("%v: %w", cmd, err)
    	}
    
    	parts := strings.SplitN(string(bytes.TrimSpace(out)), ":", 4)
    	if len(parts) < 2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 17:46:57 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testcshared/cshared_test.go

    	return m.Run()
    }
    
    func goEnv(key string) string {
    	out, err := exec.Command("go", "env", key).Output()
    	if err != nil {
    		log.Printf("go env %s failed:\n%s", key, err)
    		log.Panicf("%s", err.(*exec.ExitError).Stderr)
    	}
    	return strings.TrimSpace(string(out))
    }
    
    func cmdToRun(name string) string {
    	return "./" + name + exeSuffix
    }
    
    func run(t *testing.T, extraEnv []string, args ...string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 21K bytes
    - Viewed (0)
  7. src/runtime/crash_test.go

    		cmd.Env = append(cmd.Env, "RUNTIME_TEST_SHORT=1")
    	}
    	out, err := cmd.CombinedOutput()
    	if err == nil {
    		t.Logf("%v (%v): ok", cmd, time.Since(start))
    	} else {
    		if _, ok := err.(*exec.ExitError); ok {
    			t.Logf("%v: %v", cmd, err)
    		} else if errors.Is(err, exec.ErrWaitDelay) {
    			t.Fatalf("%v: %v", cmd, err)
    		} else {
    			t.Fatalf("%v failed to start: %v", cmd, err)
    		}
    	}
    	return string(out)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 27K bytes
    - Viewed (0)
  8. pkg/kubelet/container/runtime.go

    type CommandRunner interface {
    	// RunInContainer synchronously executes the command in the container, and returns the output.
    	// If the command completes with a non-0 exit code, a k8s.io/utils/exec.ExitError will be returned.
    	RunInContainer(ctx context.Context, id ContainerID, cmd []string, timeout time.Duration) ([]byte, error)
    }
    
    // Pod is a group of containers.
    type Pod struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modfetch/codehost/git.go

    			return false, err
    		}
    	}
    
    	_, err = Run(ctx, r.dir, "git", "merge-base", "--is-ancestor", "--", tag, rev)
    	if err == nil {
    		return true, nil
    	}
    	if ee, ok := err.(*RunError).Err.(*exec.ExitError); ok && ee.ExitCode() == 1 {
    		return false, nil
    	}
    	return false, err
    }
    
    func (r *gitRepo) ReadZip(ctx context.Context, rev, subdir string, maxSize int64) (zip io.ReadCloser, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 22:10:38 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*Error).Unwrap", Method, 13},
    		{"(*ExitError).Error", Method, 0},
    		{"(ExitError).ExitCode", Method, 12},
    		{"(ExitError).Exited", Method, 0},
    		{"(ExitError).Pid", Method, 0},
    		{"(ExitError).String", Method, 0},
    		{"(ExitError).Success", Method, 0},
    		{"(ExitError).Sys", Method, 0},
    		{"(ExitError).SysUsage", Method, 0},
    		{"(ExitError).SystemTime", Method, 0},
    		{"(ExitError).UserTime", Method, 0},
    		{"Cmd", Type, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top