[PATCH] tests: silence obsolete warning

timeless timeless at fmr.im
Fri May 6 15:53:19 UTC 2016


# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1462327878 0
#      Wed May 04 02:11:18 2016 +0000
# Node ID 4dcc4586ef9015556825a82819ffbc231e5cf79a
# Parent  fe50341de1fff843ae633d7ad7be908100c09cdc
# Available At bb://timeless/mercurial-crew
#              hg pull bb://timeless/mercurial-crew -r 4dcc4586ef90
tests: silence obsolete warning

Matt Harbison and I regularly hit these warnings.

We discussed the problem in mid-April.

diff -r fe50341de1ff -r 4dcc4586ef90 tests/test-check-execute.t
--- a/tests/test-check-execute.t	Tue May 03 16:33:25 2016 -0400
+++ b/tests/test-check-execute.t	Wed May 04 02:11:18 2016 +0000
@@ -5,19 +5,23 @@
 look for python scripts without the execute bit
 
   $ hg files 'set:**.py and not exec() and grep(r"^#!.*?python")'
+  obsolete feature not enabled but * markers found! (glob) (?)
   [1]
 
 look for python scripts with execute bit but not shebang
 
   $ hg files 'set:**.py and exec() and not grep(r"^#!.*?python")'
+  obsolete feature not enabled but * markers found! (glob) (?)
   [1]
 
 look for shell scripts with execute bit but not shebang
 
   $ hg files 'set:**.sh and exec() and not grep(r"^#!.*(ba)?sh")'
+  obsolete feature not enabled but * markers found! (glob) (?)
   [1]
 
 look for non scripts with no shebang
 
   $ hg files 'set:exec() and not **.sh and not **.py and not grep(r"^#!")'
+  obsolete feature not enabled but * markers found! (glob) (?)
   [1]
diff -r fe50341de1ff -r 4dcc4586ef90 tests/test-check-shbang.t
--- a/tests/test-check-shbang.t	Tue May 03 16:33:25 2016 -0400
+++ b/tests/test-check-shbang.t	Wed May 04 02:11:18 2016 +0000
@@ -5,9 +5,11 @@
 look for python scripts that do not use /usr/bin/env
 
   $ hg files 'set:grep(r"^#!.*?python") and not grep(r"^#!/usr/bin/env python")'
+  obsolete feature not enabled but * markers found! (glob) (?)
   [1]
 
 look for shell scripts that do not use /bin/sh
 
   $ hg files 'set:grep(r"^#!.*/bin/sh") and not grep(r"^#!/bin/sh")'
+  obsolete feature not enabled but * markers found! (glob) (?)
   [1]


More information about the Mercurial-devel mailing list