Skip to content

Commit 864fed1

Browse files
committed
Allow a 'fuzzy' patch match
Avoid leaving behind an '.orig' file which would fail the test
1 parent a8df5ce commit 864fed1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/scala/com/typesafe/genjavadoc/BasicSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class BasicSpec extends CompilerSpec {
2121
if (new java.io.File(patchFile).exists) { // we have a patch to apply to expected output for this scala version
2222
"rm -rf target/expected_output".! // cleanup from previous runs
2323
"cp -r src/test/resources/expected_output target/".! // copy expected output to a place which is going to be patched
24-
s"patch -p0 -i $patchFile".! // path expected output
24+
s"patch -p0 --no-backup-if-mismatch -i $patchFile".! // path expected output
2525
"target/expected_output/basic"
2626
} else {
2727
"src/test/resources/expected_output/basic"

0 commit comments

Comments
 (0)