Mercurial > hg
comparison tests/run-tests.py @ 39663:b6fa1f628bbe
run-tests: convert the remaining os.system() call to Unicode
I wasn't able to hit this path in 543a788eea2d, but I have now when I
accidentally left off `--local`.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 16 Sep 2018 23:13:05 -0400 |
parents | 543a788eea2d |
children | 030d558c6456 |
comparison
equal
deleted
inserted
replaced
39662:50f46b771921 | 39663:b6fa1f628bbe |
---|---|
2974 raise | 2974 raise |
2975 makedirs(self._pythondir) | 2975 makedirs(self._pythondir) |
2976 makedirs(self._bindir) | 2976 makedirs(self._bindir) |
2977 | 2977 |
2978 vlog("# Running", cmd) | 2978 vlog("# Running", cmd) |
2979 if os.system(cmd) == 0: | 2979 if os.system(_strpath(cmd)) == 0: |
2980 if not self.options.verbose: | 2980 if not self.options.verbose: |
2981 try: | 2981 try: |
2982 os.remove(installerrs) | 2982 os.remove(installerrs) |
2983 except OSError as e: | 2983 except OSError as e: |
2984 if e.errno != errno.ENOENT: | 2984 if e.errno != errno.ENOENT: |