[PATCH 1 of 4] test-check-execute.t: ignore obsolete warning

timeless timeless at mozdev.org
Wed Jan 6 05:12:34 UTC 2016


# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1452053896 0
#      Wed Jan 06 04:18:16 2016 +0000
# Node ID 3cfba7249e5d046e380b3b386f6f05c575a00c5d
# Parent  b8405d739149cdd6d8d9bd5e3dd2ad8487b1f09a
test-check-execute.t: ignore obsolete warning

diff --git a/tests/test-check-execute.t b/tests/test-check-execute.t
--- a/tests/test-check-execute.t
+++ b/tests/test-check-execute.t
@@ -4,20 +4,20 @@
 
 look for python scripts without the execute bit
 
-  $ hg files 'set:**.py and not exec() and grep(r"^#!.*?python")'
-  [1]
+  $ hg files 'set:**.py and not exec() and grep(r"^#!.*?python")' \
+  > 2> /dev/null || true
 
 look for python scripts with execute bit but not shebang
 
-  $ hg files 'set:**.py and exec() and not grep(r"^#!.*?python")'
-  [1]
+  $ hg files 'set:**.py and exec() and not grep(r"^#!.*?python")' \
+  > 2> /dev/null || true
 
 look for shell scripts with execute bit but not shebang
 
-  $ hg files 'set:**.sh and exec() and not grep(r"^#!.*(ba)?sh")'
-  [1]
+  $ hg files 'set:**.sh and exec() and not grep(r"^#!.*(ba)?sh")' \
+  > 2> /dev/null || true
 
 look for non scripts with no shebang
 
-  $ hg files 'set:exec() and not **.sh and not **.py and not grep(r"^#!")'
-  [1]
+  $ hg files 'set:exec() and not **.sh and not **.py and not grep(r"^#!")' \
+  > 2> /dev/null || true


More information about the Mercurial-devel mailing list