github.com/rogpeppe/go-internal@v1.12.1-0.20240509064211-c8567cf8e95f/testscript/testdata/testscript_stdout_stderr_error.txt (about) 1 # Verify that stdout and stderr get set event when a user-builtin 2 # command aborts. Note that we need to assert against stdout 3 # because our meta testscript command sees only a single log. 4 unquote scripts/testscript.txt 5 ! testscript -v scripts 6 cmpenv stdout stdout.golden 7 8 -- scripts/testscript.txt -- 9 > printargs hello world 10 > echoandexit 1 'this is stdout' 'this is stderr' 11 -- stdout.golden -- 12 > printargs hello world 13 [stdout] 14 ["printargs" "hello" "world"] 15 > echoandexit 1 'this is stdout' 'this is stderr' 16 [stdout] 17 this is stdout 18 [stderr] 19 this is stderr 20 FAIL: ${$}WORK${/}scripts${/}testscript.txt:2: told to exit with code 1