[shell][python] Ip1

[tester::#IP1] Running tests for Stage #IP1 (Run a program)
[tester::#IP1] [setup] export PATH=/tmp/quz:$PATH
[tester::#IP1] [setup] Available executables:
[tester::#IP1] [setup] - custom_exe_4643
[tester::#IP1] [setup] - custom_exe_2725
[tester::#IP1] Running ./your_program.sh
[your-program] $ custom_exe_4643 Alice Maria
[your-program] Program was passed 3 args (including program name).
[your-program] Arg #0 (program name): /tmp/quz/custom_exe_4643
[tester::#IP1] ^ Line does not match expected value.
[tester::#IP1] Expected: "Arg #0 (program name): custom_exe_4643"
[tester::#IP1] Received: "Arg #0 (program name): /tmp/quz/custom_exe_4643"
[your-program] Arg #1: Alice
[your-program] Arg #2: Maria
[your-program] Program Signature: 2091428568
[your-program] $
[tester::#IP1] Assertion failed.
[tester::#IP1] Test failed (try setting 'debug: true' in your codecrafters.yml to see more details)
os.system(f"{os.path.join(cmds[cmd[0]],cmd[0])} {' '.join(cmd[1:])}")

same happens with subprocess.run

I fixed it by passing the command instead of the full path i hope this helps other people!

1 Like

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