Mercurial > public > mercurial-scm > hg
diff tests/run-tests.py @ 32718:232875623c27
run-tests: write JSON reports to output dir
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Wed, 07 Jun 2017 20:46:43 -0700 |
parents | e5680cb1414f |
children | 74680ed89a29 |
line wrap: on
line diff
--- a/tests/run-tests.py Wed Jun 07 20:32:11 2017 -0700 +++ b/tests/run-tests.py Wed Jun 07 20:46:43 2017 -0700 @@ -1925,7 +1925,7 @@ self._writexunit(result, xuf) if self._runner.options.json: - jsonpath = os.path.join(self._runner._testdir, b'report.json') + jsonpath = os.path.join(self._runner._outputdir, b'report.json') with open(jsonpath, 'w') as fp: self._writejson(result, fp) @@ -1960,7 +1960,7 @@ self._writexunit(result, xuf) if self._runner.options.json: - jsonpath = os.path.join(self._runner._testdir, b'report.json') + jsonpath = os.path.join(self._runner._outputdir, b'report.json') with open(jsonpath, 'w') as fp: self._writejson(result, fp)