Mercurial > hg > mercurial-source
comparison tests/run-tests.py @ 16905:2a95830cff77
tests: use the right directory for running hghave from run-tests.py
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sun, 10 Jun 2012 18:50:42 +0200 |
parents | 671c73d523cf |
children | eddfb9a550d0 |
comparison
equal
deleted
inserted
replaced
16904:671c73d523cf | 16905:2a95830cff77 |
---|---|
599 | 599 |
600 def hghave(reqs): | 600 def hghave(reqs): |
601 # TODO: do something smarter when all other uses of hghave is gone | 601 # TODO: do something smarter when all other uses of hghave is gone |
602 tdir = TESTDIR.replace('\\', '/') | 602 tdir = TESTDIR.replace('\\', '/') |
603 proc = Popen4('%s -c "%s/hghave %s"' % | 603 proc = Popen4('%s -c "%s/hghave %s"' % |
604 (options.shell, tdir, ' '.join(reqs)), TESTDIR, 0) | 604 (options.shell, tdir, ' '.join(reqs)), wd, 0) |
605 proc.communicate() | 605 proc.communicate() |
606 ret = proc.wait() | 606 ret = proc.wait() |
607 if wifexited(ret): | 607 if wifexited(ret): |
608 ret = os.WEXITSTATUS(ret) | 608 ret = os.WEXITSTATUS(ret) |
609 return ret == 0 | 609 return ret == 0 |