Skip to content

Commit

Permalink
Fix test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fhunleth committed Jan 29, 2024
1 parent 3409a40 commit 6a809d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/135_execute.test
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ EXE_CMD="dd if=${LOCAL_FILE} of=${OUTFILE}"

if [ "$CC" = "x86_64-w64-mingw32-gcc" -o "$MODE" = "windows" ]; then
# dd usually isn't available on Windows
EXE_CMD="copy work-135_execute.test\\\\somefile.txt work-135_execute.test\\\\output.txt"
#
# 8 backslashes to get 1 backslash since the string gets evaluated 3 times:
# shell script, fwup create, fwup apply. :(
EXE_CMD="copy work-135_execute.test\\\\\\\\somefile.txt work-135_execute.test\\\\\\\\output.txt"
fi

cat >$LOCAL_FILE <<EOF
Expand Down

0 comments on commit 6a809d8

Please sign in to comment.