Skip to content

Commit

Permalink
check files have been created
Browse files Browse the repository at this point in the history
Signed-off-by: Alessio Greggi <[email protected]>
  • Loading branch information
alegrey91 committed Aug 20, 2024
1 parent 16af6b9 commit 5820e15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func strace(ts *testscript.TestScript, neg bool, args []string) {

fmt.Fprintf(ts.Stdout(), "%s", stdoutBuf.String())

fmt.Fprintf(ts.Stdout(), "%s", stderrBuf.String())
syscalls := processStraceOutput(stderrBuf.String())
if err := os.WriteFile(outputFile, []byte(syscalls), 0644); err != nil {
ts.Fatalf("error saving strace output to %s", outputFile)
Expand Down

0 comments on commit 5820e15

Please sign in to comment.