[PATCH 5 of 7] test-absorb: stabilize for no-execbit platforms

Matt Harbison mharbison72 at gmail.com
Sat Aug 18 15:17:04 EDT 2018


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1534613253 14400
#      Sat Aug 18 13:27:33 2018 -0400
# Node ID c2ac7520fb6bbc0097613391f5354489808d8b5c
# Parent  aee8ed1bbd3280214d55cef2b41a810fd48480e4
test-absorb: stabilize for no-execbit platforms

diff --git a/tests/test-absorb.t b/tests/test-absorb.t
--- a/tests/test-absorb.t
+++ b/tests/test-absorb.t
@@ -325,10 +325,26 @@ Executable files:
   $ 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


More information about the Mercurial-devel mailing list