tests/run-tests.py
changeset 41509 ef29b6b8768c
parent 41500 f9150901267c
child 41554 17a6e063c886
equal deleted inserted replaced
41508:fa7d4e6a0c98 41509:ef29b6b8768c
  2770         If you wish to inject custom tests into the test harness, this would
  2770         If you wish to inject custom tests into the test harness, this would
  2771         be a good function to monkeypatch or override in a derived class.
  2771         be a good function to monkeypatch or override in a derived class.
  2772         """
  2772         """
  2773         if not args:
  2773         if not args:
  2774             if self.options.changed:
  2774             if self.options.changed:
  2775                 proc = Popen4('hg st --rev "%s" -man0 .' %
  2775                 proc = Popen4(b'hg st --rev "%s" -man0 .' %
  2776                               self.options.changed, None, 0)
  2776                               _bytespath(self.options.changed), None, 0)
  2777                 stdout, stderr = proc.communicate()
  2777                 stdout, stderr = proc.communicate()
  2778                 args = stdout.strip(b'\0').split(b'\0')
  2778                 args = stdout.strip(b'\0').split(b'\0')
  2779             else:
  2779             else:
  2780                 args = os.listdir(b'.')
  2780                 args = os.listdir(b'.')
  2781 
  2781