##// 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 702 return os.path.isdir(os.path.join(t, "..", ".hg"))
703 703
704 704
705 @check("tic", "terminfo compiler and curses module")
706 def has_tic():
705 @check("curses", "terminfo compiler and curses module")
706 def has_curses():
707 707 try:
708 708 import curses
709 709
@@ -714,11 +714,17 b' def has_tic():'
714 714 if os.name == 'nt':
715 715 return True
716 716
717 return matchoutput('test -x "`which tic`"', br'')
717 return has_tic()
718
718 719 except (ImportError, AttributeError):
719 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 728 @check("xz", "xz compression utility")
723 729 def has_xz():
724 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 3 Set up a repo
4 4
@@ -1,4 +1,4 b''
1 #require tic
1 #require curses
2 2
3 3 Revert interactive tests with the Curses interface
4 4
General Comments 0
You need to be logged in to leave comments. Login now