Skip to content

Commit

Permalink
Update runtests.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli authored Dec 3, 2023
1 parent ad41759 commit ea7b260
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ function run_test()

local command
if [[ "$joufile" =~ ^examples/aoc ]]; then
# AoC files use fopen("sampleinput.txt", "r")
# AoC files use fopen("sampleinput.txt", "r").
# We don't do this for all files, because I like relative paths in error messages.
command="cd $(dirname $joufile) && $(printf "$command_template" $(basename $joufile))"
else
command="$(printf "$command_template" $joufile)"
Expand Down

0 comments on commit ea7b260

Please sign in to comment.