##// END OF EJS Templates
hghave: split apart testing for the curses module and `tic` executable...
Matt Harbison -
r47043:e5e6282f default
parent child Browse files
Show More
@@ -702,8 +702,8 b' def has_test_repo():'
702 return os.path.isdir(os.path.join(t, "..", ".hg"))
702 return os.path.isdir(os.path.join(t, "..", ".hg"))
703
703
704
704
705 @check("tic", "terminfo compiler and curses module")
705 @check("curses", "terminfo compiler and curses module")
706 def has_tic():
706 def has_curses():
707 try:
707 try:
708 import curses
708 import curses
709
709
@@ -714,11 +714,17 b' def has_tic():'
714 if os.name == 'nt':
714 if os.name == 'nt':
715 return True
715 return True
716
716
717 return matchoutput('test -x "`which tic`"', br'')
717 return has_tic()
718
718 except (ImportError, AttributeError):
719 except (ImportError, AttributeError):
719 return False
720 return False
720
721
721
722
723 @check("tic", "terminfo compiler")
724 def has_tic():
725 return matchoutput('test -x "`which tic`"', br'')
726
727
722 @check("xz", "xz compression utility")
728 @check("xz", "xz compression utility")
723 def has_xz():
729 def has_xz():
724 # When Windows invokes a subprocess in shell mode, it uses `cmd.exe`, which
730 # When Windows invokes a subprocess in shell mode, it uses `cmd.exe`, which
@@ -1,4 +1,4 b''
1 #require tic
1 #require curses
2
2
3 Set up a repo
3 Set up a repo
4
4
@@ -1,4 +1,4 b''
1 #require tic
1 #require curses
2
2
3 Revert interactive tests with the Curses interface
3 Revert interactive tests with the Curses interface
4
4
General Comments 0
You need to be logged in to leave comments. Login now