Chromium Code Reviews| Index: build/android/pylib/junit/test_runner.py |
| diff --git a/build/android/pylib/junit/test_runner.py b/build/android/pylib/junit/test_runner.py |
| index a97841264dfaf13e314bdd553e5dda3226cc610b..02dd405f7fcf0279a0cdb15231f16eb7eae5a27f 100644 |
| --- a/build/android/pylib/junit/test_runner.py |
| +++ b/build/android/pylib/junit/test_runner.py |
| @@ -47,7 +47,10 @@ class JavaTestRunner(object): |
| # Add JVM arguments. |
| jvm_args = [] |
| if self._coverage_dir: |
| - jvm_args.append('-Demma.coverage.out.file=%s' % self._coverage_dir) |
| + if not os.path.isdir(self._coverage_dir): |
|
jbudorick
2016/05/24 19:33:21
nit: os.path.exists
although I'm not sure how eit
BigBossZhiling
2016/05/25 02:00:20
I tested os.path.exists and os.path.isdir.
jbudorick
2016/05/25 13:11:37
Hah, yes, I know how they work in that sense.
|
| + os.makedirs(self._coverage_dir) |
| + jvm_args.append('-Demma.coverage.out.file=%s' % os.path.join( |
| + self._coverage_dir, '%s.ec' % self._test_suite)) |
| if jvm_args: |
| command.extend(['--jvm-args', '"%s"' % ' '.join(jvm_args)]) |