Can't pass tests for stage #JV1

I can’t pass the tests for the stage #JV1. I’ve changed some code for running non-builtin commands and now the tests won’t pass. Here is the error message:

[tester::#JV1] Running tests for Stage #JV1 (Redirection - Redirect stdout)
[tester::#JV1] [setup] export PATH=/tmp/strawberry/mango/blueberry:$PATH
[tester::#JV1] Running ./your_program.sh
[tester::#JV1] [setup] echo -n "blueberry" > "/tmp/bar/blueberry"
[tester::#JV1] [setup] echo -n "mango" > "/tmp/bar/mango"
[tester::#JV1] [setup] echo -n "pineapple" > "/tmp/bar/pineapple"
[your-program] $ ls -1 /tmp/bar > /tmp/quz/baz.md
[your-program] $ cat /tmp/quz/baz.md
[your-program] blueberry
[your-program] mango
[your-program] pineapple
[tester::#JV1] ✓ Received redirected file content
[your-program] $ echo 'Hello Maria' 1> /tmp/quz/foo.md
[your-program] $ cat /tmp/quz/foo.md
[your-program] Hello Maria
[tester::#JV1] ✓ Received redirected file content
[your-program] $ cat /tmp/bar/mango nonexistent 1> /tmp/quz/qux.md
[your-program] cat: nonexistent: No such file or directory
[tester::#JV1] ✓ Received error message
[your-program] $ cat /tmp/quz/qux.md
[your-program] $ 
[tester::#JV1] Output does not match expected value.
[tester::#JV1] Expected: "mango"
[tester::#JV1] Received: "$ "
[tester::#JV1] Assertion failed.
[tester::#JV1] Test failed

Hey @danilovict2, could you upload your code to GitHub and share the link? It will be much easier to debug if I can run it directly.

Oh silly me, I forgot to share the link. Here you go: GitHub - danilovict2/go-shell

Sorry to have bothered you, but I’ve resolved it after a few hours!

@danilovict2 Glad to hear you got it sorted out! Mind sharing what the issue was? Love to see if we can improve the tester / instructions.

Honestly no idea, I just played around with the logic and it somehow worked out

Though, the original logic worked on my local machine so it might’ve been some kind of error with the test runner