tests/hghave.py
changeset 32874 41f99a90675d
parent 32790 9cf74abd1252
child 32919 559db66dead5
equal deleted inserted replaced
32873:28f429d19a71 32874:41f99a90675d
   500 def has_system_sh():
   500 def has_system_sh():
   501     return os.name != 'nt'
   501     return os.name != 'nt'
   502 
   502 
   503 @check("serve", "platform and python can manage 'hg serve -d'")
   503 @check("serve", "platform and python can manage 'hg serve -d'")
   504 def has_serve():
   504 def has_serve():
   505     return os.name != 'nt' # gross approximation
   505     return True
   506 
   506 
   507 @check("test-repo", "running tests from repository")
   507 @check("test-repo", "running tests from repository")
   508 def has_test_repo():
   508 def has_test_repo():
   509     t = os.environ["TESTDIR"]
   509     t = os.environ["TESTDIR"]
   510     return os.path.isdir(os.path.join(t, "..", ".hg"))
   510     return os.path.isdir(os.path.join(t, "..", ".hg"))