Add tests to verify the fix for #117

This commit is contained in:
David Dworken
2023-10-21 08:59:27 -07:00
parent 1fc17e3296
commit 08e734a1fe
3 changed files with 21 additions and 5 deletions

View File

@ -41,7 +41,7 @@ func (b bashTester) RunInteractiveShell(t testing.TB, script string) string {
out, err := b.RunInteractiveShellRelaxed(t, "set -emo pipefail\n"+script)
if err != nil {
_, filename, line, _ := runtime.Caller(1)
t.Fatalf("error when running command at %s:%d: %v", filename, line, err)
require.NoError(t, err, fmt.Sprintf("error when running command at %s:%dv", filename, line))
}
return out
}