]> git.notmuchmail.org Git - notmuch/blobdiff - test/test-lib.sh
test: copy files in test_expect_equal_file instead of moving them
[notmuch] / test / test-lib.sh
index 922b1ef536350fb91ba5988fdde991e1fdf7d79a..7855609248e72d1961cc22e21192b577a901395b 100755 (executable)
@@ -477,8 +477,8 @@ test_expect_equal_file ()
                        test_ok_ "$test_subtest_name"
                else
                        testname=$this_test.$test_count
-                       mv "$output" $testname.output
-                       mv "$expected" $testname.expected
+                       cp "$output" $testname.output
+                       cp "$expected" $testname.expected
                        test_failure_ "$test_subtest_name" "$(diff -u $testname.expected $testname.output)"
                fi
     fi