Skip to content
Snippets Groups Projects
Commit 6e04f4ec authored by Katsunori FUJIWARA's avatar Katsunori FUJIWARA
Browse files

tests: put temporary file outside the working directory for test portability

test-largefiles-update.t creates temporary file exec-bit.patch inside
the working directory for no-execbit platform specific test, but
subsequent tests aren't aware of it.

On execbit platform, subsequent tests can run successfully, because
exec-bit.patch isn't created.

But on no-execbit platform, this temporary file makes subsequent tests
show "? exec-bit.patch" at each "hg status".
parent 9843e3d9
No related branches found
No related tags found
No related merge requests found
......@@ -712,7 +712,7 @@
$ hg update -q -C 4
$ cat > exec-bit.patch <<EOF
$ cat > ../exec-bit.patch <<EOF
> # HG changeset patch
> # User test
> # Date 0 0
......@@ -725,8 +725,8 @@
> old mode 100644
> new mode 100755
> EOF
$ hg import --exact --bypass exec-bit.patch
applying exec-bit.patch
$ hg import --exact --bypass ../exec-bit.patch
applying ../exec-bit.patch
$ hg status -A --rev tip large2
C large2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment