fix: supress within record pty exit codes

This commit is contained in:
2026-03-21 23:43:15 +00:00
parent 31965de082
commit f3b80ddf05
2 changed files with 3 additions and 4 deletions
+3 -3
View File
@@ -41,9 +41,9 @@ func recordScenario(target, shellPath string, rio recordIO, sandboxConfig map[st
output.Fprintln(rio.err, "Run commands in the recorder shell, then type exit to finish.") output.Fprintln(rio.err, "Run commands in the recorder shell, then type exit to finish.")
if err := runRecordSession(target, rawIn, rawOut, shellPath, sandbox, rio, sandboxConfig, setupScripts); err != nil { // this error is intentionally discarded to avoid non zero exit status inside record
return err // as an error
} runRecordSession(target, rawIn, rawOut, shellPath, sandbox, rio, sandboxConfig, setupScripts)
save, err := confirmRecordSave(rio) save, err := confirmRecordSave(rio)
if err != nil { if err != nil {
-1
View File
@@ -1,7 +1,6 @@
#!/bin/sh #!/bin/sh
set -eu set -eu
# hoisted vars to fail fast if any missing
host_home=${MIRE_HOST_HOME:?} host_home=${MIRE_HOST_HOME:?}
host_tmp=${MIRE_HOST_TMP:?} host_tmp=${MIRE_HOST_TMP:?}
path_env=${MIRE_PATH_ENV:?} path_env=${MIRE_PATH_ENV:?}