Skip to content

Commit fb2c379

Browse files
committed
test/html: Fix escaping of filenames containing '
1 parent d061618 commit fb2c379

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/html/test.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ let diff =
176176
fun output ->
177177
let actual_file = Env.path `scratch // output in
178178
let expected_file = Env.path `expect // output in
179-
let cmd = sprintf "diff -N -u -b %s %s" expected_file actual_file in
179+
let cmd = sprintf "diff -N -u -b %S %S" expected_file actual_file in
180180
match Sys.command cmd with
181181
| 0 -> ()
182182
| 1 when !already_failed ->

test/html/tidy.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ let validate file =
3030
"-ashtml";
3131
]
3232
in
33-
let cmd = Printf.sprintf "tidy %s %s" options file in
33+
let cmd = Printf.sprintf "tidy %s %S" options file in
3434
let ((_, _, stderr) as proc) = Unix.open_process_full cmd [||] in
3535

3636
let errors_and_warnings =

0 commit comments

Comments
 (0)