]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t9300: create marks files for double-import-marks test
authorJeff King <peff@peff.net>
Thu, 29 Aug 2019 17:43:23 +0000 (13:43 -0400)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 4 Dec 2019 12:20:03 +0000 (13:20 +0100)
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>
t/t9300-fast-import.sh

index 1d2a7516fdbf73f9cfcead252bf6287ea5c489cf..c0d04ec3ee19d059b7f2fb15f3e07eaa18ce3bec 100755 (executable)
@@ -2107,6 +2107,8 @@ test_expect_success 'R: abort on receiving feature after data command' '
 '
 
 test_expect_success 'R: only one import-marks feature allowed per stream' '
+       >git.marks &&
+       >git2.marks &&
        cat >input <<-EOF &&
        feature import-marks=git.marks
        feature import-marks=git2.marks