Stuck on #NI6. Tester prints output of external command multiple time

I’m stuck on Stage #NI6
In the tester logs, it seems like the output is printed 3 times:

[tester::#NI6] [setup] echo -n "orange apple." > "/tmp/bar/f   67"
[tester::#NI6] [setup] echo -n "banana pear." > "/tmp/bar/f   64"
[tester::#NI6] [setup] echo "strawberry grape." > "/tmp/bar/f   78"
...
[your-program] $ cat '/tmp/bar/f   67' '/tmp/bar/f   64' '/tmp/bar/f   78'
[your-program] orange apple.banana pear.strawberry grape.
[your-program] orange apple.banana pear.strawberry grape.
[tester::#NI6] ^ Expected prompt ("$ ") but received "orange apple.banana pear.strawberry grape."
[your-program] orange apple.banana pear.strawberry grape.
[your-program] $
[tester::#NI6] Assertion failed.

This not the behavior I see when I run locally:

❯ ./your_program.sh
    Finished `release` profile [optimized] target(s) in 0.00s
$ cat '/tmp/bar/f   67' '/tmp/bar/f   64' '/tmp/bar/f   78'
orange apple.banana pear.strawberry grape.
$

Hey @mallard-308, the nested loop inside exec_external_command looks suspicious. Could you try removing it first and see if that helps?

Closing this thread due to inactivity. If you still need assistance, feel free to reopen or start a new discussion!

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.