test-absorb: stabilize for no-execbit platforms
authorMatt Harbison <matt_harbison@yahoo.com>
Sat, 18 Aug 2018 13:27:33 -0400
changeset 39221 3fa9058f4f79
parent 39220 2f89a7defe62
child 39222 2dfc22620a54
test-absorb: stabilize for no-execbit platforms
tests/test-absorb.t
--- a/tests/test-absorb.t	Sat Aug 18 12:35:47 2018 -0400
+++ b/tests/test-absorb.t	Sat Aug 18 13:27:33 2018 -0400
@@ -325,10 +325,26 @@
   $ cd ..
   $ hg init repo3
   $ cd repo3
+
+#if execbit
   $ echo > foo.py
   $ chmod +x foo.py
   $ hg add foo.py
   $ hg commit -mfoo
+#else
+  $ hg import -q --bypass - <<EOF
+  > # HG changeset patch
+  > foo
+  > 
+  > diff --git a/foo.py b/foo.py
+  > new file mode 100755
+  > --- /dev/null
+  > +++ b/foo.py
+  > @@ -0,0 +1,1 @@
+  > +
+  > EOF
+  $ hg up -q
+#endif
 
   $ echo bla > foo.py
   $ hg absorb --dry-run --print-changes