Skip to contentSkip to conversation

Skip archive --remote tests on Windows

PATCH In review Johannes Sixt 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Skip archive --remote tests on Windows

From: Johannes Sixt <[email protected]>

These depend on a working git-upload-archive, which is broken on Windows, because it depends on fork().

---
These prerequisites are needed in current master, but would have to be patched out again by Erik's upload-archive series.

 t/t5000-tar-tree.sh |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
t/t5000-tar-tree.sh +4 -4
index 9e3ba98..d906898 100755
@@ -266,7 +266,7 @@ test_expect_success 'archive --list mentions user filter' '
 	grep "^bar\$" output
 '
 
-test_expect_success 'archive --list shows only enabled remote filters' '
+test_expect_success NOT_MINGW 'archive --list shows only enabled remote filters' '
 	git archive --list --remote=. >output &&
 	! grep "^tar\.foo\$" output &&
 	grep "^bar\$" output
@@ -298,7 +298,7 @@ test_expect_success 'extension matching requires dot' '
 	test_cmp b.tar config-implicittar.foo
 '
 
-test_expect_success 'only enabled filters are available remotely' '
+test_expect_success NOT_MINGW 'only enabled filters are available remotely' '
 	test_must_fail git archive --remote=. --format=tar.foo HEAD \
 		>remote.tar.foo &&
 	git archive --remote=. --format=bar >remote.bar HEAD &&
@@ -341,12 +341,12 @@ test_expect_success GZIP,GUNZIP 'extract tgz file' '
 	test_cmp b.tar j.tar
 '
 
-test_expect_success GZIP 'remote tar.gz is allowed by default' '
+test_expect_success GZIP,NOT_MINGW 'remote tar.gz is allowed by default' '
 	git archive --remote=. --format=tar.gz HEAD >remote.tar.gz &&
 	test_cmp j.tgz remote.tar.gz
 '
 
-test_expect_success GZIP 'remote tar.gz can be disabled' '
+test_expect_success GZIP,NOT_MINGW 'remote tar.gz can be disabled' '
 	git config tar.tar.gz.remote false &&
 	test_must_fail git archive --remote=. --format=tar.gz HEAD \
 		>remote.tar.gz
Signature · 1 line
1.7.6.1572.g1f80c3
#1 lore raw
Quoted 9 lines · Johannes Sixt

From: Johannes Sixt <[email protected]>

These depend on a working git-upload-archive, which is broken on Windows, because it depends on fork().

---
These prerequisites are needed in current master, but would have to be patched out again by Erik's upload-archive series.

[...]

t/t5000-tar-tree.sh test_expect_success 'archive --list mentions user filter' ' · line 269

Quoted 2 lines
t/t5000-tar-tree.sh +1 -1
-test_expect_success 'archive --list shows only enabled remote filters' '
+test_expect_success NOT_MINGW 'archive --list shows only enabled remote filters' '

Shouldn't the prerequisite be called FORK rather than NON_MINGW?

Signature · 1 line
Jakub Narębski
#2 lore raw

Am 8/3/2011 11:09, schrieb Jakub Narebski:

Quoted 5 lines

t/t5000-tar-tree.sh test_expect_success 'archive --list mentions user filter' ' · line 269

Quoted 2 lines · Johannes Sixt
t/t5000-tar-tree.sh +1 -1
-test_expect_success 'archive --list shows only enabled remote filters' '
+test_expect_success NOT_MINGW 'archive --list shows only enabled remote filters' '

Shouldn't the prerequisite be called FORK rather than NON_MINGW?

Yes, it should. But we already have one instance of NOT_MINGW in connection with archive --remote in this file before this patch, and with Erik's efforts, these particular prerequisites should go away anyway RSN.

-- Hannes