@matheusbsbs / matheus-bagliano / commits / 816f806786
Fork 0

t9300: create marks files for double-import-marks test

Our tests confirm that providing two "import-marks" options in a fast-import stream is an error. However, the invoked command would fail even without covering this case, because the marks files themselves do not actually exist. Let's create the files to make sure we fail for the right reason (we actually do, because the option parsing happens before we open anything, but this future-proofs our test). Signed-off-by: Jeff King <peff@peff.net>

Jeff King committed Aug 29, 2019 at 13:43 UTC 816f806786e12435163c591942a204c5a3bdd795
1 file changed +2
t/t9300-fast-import.sh
+2
@@ -2107,6 +2107,8 @@ test_expect_success 'R: abort on receiving feature after data command' '
2107 '
2108
2109 test_expect_success 'R: only one import-marks feature allowed per stream' '
2110 + >git.marks &&
2111 + >git2.marks &&
2112 cat >input <<-EOF &&
2113 feature import-marks=git.marks
2114 feature import-marks=git2.marks