diff --git a/tests/inspect/inspect.go b/tests/inspect/inspect.go index 970f6442..dc60f191 100644 --- a/tests/inspect/inspect.go +++ b/tests/inspect/inspect.go @@ -94,7 +94,7 @@ func init() { globalFlagset.BoolVar(&globalFlags.ReadStdin, "read-stdin", false, "Read a line from stdin") globalFlagset.BoolVar(&globalFlags.CheckTty, "check-tty", false, "Check if stdin is a terminal") globalFlagset.BoolVar(&globalFlags.CheckPath, "check-path", false, "Check if environment variable PATH does not contain \\n") - globalFlagset.BoolVar(&globalFlags.PrintExec, "print-exec", false, "Print the command we were execed as (i.e. argv[0])") + globalFlagset.BoolVar(&globalFlags.PrintExec, "print-exec", false, "Print the command we were exceed as (i.e. argv[0])") globalFlagset.StringVar(&globalFlags.PrintMsg, "print-msg", "", "Print the message given as parameter") globalFlagset.StringVar(&globalFlags.SuffixMsg, "suffix-msg", "", "Print this suffix after some commands") globalFlagset.BoolVar(&globalFlags.PrintCwd, "print-cwd", false, "Print the current working directory") @@ -262,7 +262,7 @@ func main() { } if globalFlags.PrintExec { - fmt.Fprintf(os.Stdout, "inspect execed as: %s\n", os.Args[0]) + fmt.Fprintf(os.Stdout, "inspect exceed as: %s\n", os.Args[0]) } if globalFlags.PrintMsg != "" { diff --git a/tests/rkt_exec_test.go b/tests/rkt_exec_test.go index 2eb694b0..cc649617 100644 --- a/tests/rkt_exec_test.go +++ b/tests/rkt_exec_test.go @@ -66,23 +66,23 @@ func TestRunOverrideExec(t *testing.T) { { // Sanity check - make sure no --exec override prints the expected exec invocation rktCmd: fmt.Sprintf("%s --insecure-options=image run --mds-register=false %s -- --print-exec", ctx.Cmd(), execImage), - expectedRegex: "inspect execed as: /inspect", + expectedRegex: "inspect exceed as: /inspect", }, { // Now test overriding the entrypoint (which is a symlink to /inspect so should behave identically) rktCmd: fmt.Sprintf("%s --insecure-options=image run --mds-register=false %s --exec /inspect-link -- --print-exec", ctx.Cmd(), execImage), - expectedRegex: "inspect execed as: /inspect-link", + expectedRegex: "inspect exceed as: /inspect-link", }, { // Test overriding the entrypoint with a relative path rktCmd: fmt.Sprintf("%s --insecure-options=image run --mds-register=false %s --exec inspect-link-bin -- --print-exec", ctx.Cmd(), execImage), - expectedRegex: "inspect execed as: .*inspect-link-bin", + expectedRegex: "inspect exceed as: .*inspect-link-bin", }, { // Test overriding the entrypoint with a missing app section rktCmd: fmt.Sprintf("%s --insecure-options=image run --mds-register=false %s --exec /inspect -- --print-exec", ctx.Cmd(), noappImage), - expectedRegex: "inspect execed as: /inspect", + expectedRegex: "inspect exceed as: /inspect", }, } { runRktAndCheckRegexOutput(t, tt.rktCmd, tt.expectedRegex) @@ -102,7 +102,7 @@ func TestRunPreparedOverrideExec(t *testing.T) { uuid = runRktAndGetUUID(t, rktCmd) rktCmd = fmt.Sprintf("%s run-prepared --mds-register=false %s", ctx.Cmd(), uuid) - expected = "inspect execed as: /inspect" + expected = "inspect exceed as: /inspect" runRktAndCheckOutput(t, rktCmd, expected, false) // Now test overriding the entrypoint (which is a symlink to /inspect so should behave identically) @@ -110,6 +110,6 @@ func TestRunPreparedOverrideExec(t *testing.T) { uuid = runRktAndGetUUID(t, rktCmd) rktCmd = fmt.Sprintf("%s run-prepared --mds-register=false %s", ctx.Cmd(), uuid) - expected = "inspect execed as: /inspect-link" + expected = "inspect exceed as: /inspect-link" runRktAndCheckOutput(t, rktCmd, expected, false) }