Unrelated test case for "Build your own Shell" - Single Quote

I was solving this section and got it to work, but at the very end the test case decided to test (Navigation - The cd builtin: Home directory) and it printed this to console.

[tester::#GP4] Running tests for Stage #GP4 (Navigation - The cd builtin: Home directory)
[tester::#GP4] Running ./your_program.sh
[your-program] $ cd /tmp/grape/pear/banana
[your-program] cd: : No such file or directory
[tester::#GP4] ^ Expected prompt ("$ ") but received “cd: : No such file or directory”
[your-program] $
[tester::#GP4] Test failed

I don’t understand why I am being asked this because I already solved the problem in the first place and I think that because it’s a different stage and the environment was not configured to create the specified directory it never existed in the first place.

EDIT: link GitHub - Hoksolinvan/codecrafters-shell-cpp · GitHub

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

Yep, I uploaded it now!

Pasting my email response here as well:

After your code passes a stage, our tester re-runs all previous stages as well to prevent regressions. Now it looks like Stage #GP4 may be failing unexpectedly here.


You can confirm whether earlier stages are broken by re-running previous tests using our CLI:

codecrafters test --previous

Let me know what you find.