Test runner panics in Executing a quoted executable

In the “Executing a quoted executable” #QJ0 stage of Build your own Shell, the test runner tries to copy /usr/bin/cat to a different file name, with quotes and spaces in it. However, the test runner fails with

[tester::#QJ0] Copying /usr/bin/cat to /tmp/quz/'exe  with  space'
panic: CodeCrafters Internal Error: Cannot copy executable

goroutine 21 [running]:
github.com/codecrafters-io/shell-tester/internal.testQ6(0x0?)
	/home/runner/work/shell-tester/shell-tester/internal/stage_q6.go:47 +0x1037
github.com/codecrafters-io/tester-utils/test_runner.TestRunner.Run.func1()
	/home/runner/go/pkg/mod/github.com/codecrafters-io/tester-utils@v0.2.38/test_runner/test_runner.go:57 +0x28
created by github.com/codecrafters-io/tester-utils/test_runner.TestRunner.Run in goroutine 1
	/home/runner/go/pkg/mod/github.com/codecrafters-io/tester-utils@v0.2.38/test_runner/test_runner.go:56 +0x3d0
CodeCrafters internal error: exit status 2

This is before it executes my code, so it shouldn’t have anything to do with my specific code, but if relevant this is with Kotlin.

Hi @GabrielleVivissi, thanks for highlighting the issue!

We’re actively working on resolving it and will update you as soon as it’s fixed.

We fixed the issue in this PR. Thanks again for highlighting it! @GabrielleVivissi

Let us know if you’re still experiencing the issue.

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