Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15397410
D10866.id26090.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
709 B
Referenced Files
None
Subscribers
None
D10866.id26090.diff
View Options
diff --git a/src/unit/engine/PytestTestEngine.php b/src/unit/engine/PytestTestEngine.php
--- a/src/unit/engine/PytestTestEngine.php
+++ b/src/unit/engine/PytestTestEngine.php
@@ -13,7 +13,16 @@
$cover_tmp = new TempFile();
$future = $this->buildTestFuture($junit_tmp, $cover_tmp);
- $future->resolvex();
+ list($err, $stdout, $stderr) = $future->resolve();
+
+ if (!Filesystem::pathExists($junit_tmp)) {
+ throw new CommandException(
+ "Command failed with error #{$err}!",
+ $future->getCommand(),
+ $err,
+ $stdout,
+ $stderr);
+ }
$future = new ExecFuture('coverage xml -o %s', $cover_tmp);
$future->setCWD($this->project_root);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 17, 7:59 PM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7708804
Default Alt Text
D10866.id26090.diff (709 B)
Attached To
Mode
D10866: Report tests results whenever possible
Attached
Detach File
Event Timeline
Log In to Comment