OSDN Git Service
(root)
/
wvm
/
wvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6156cb7
)
behat: remove temp files for scenarios that don't have failing steps
author
scribu
<mail@scribu.net>
Sun, 19 May 2013 19:06:20 +0000
(22:06 +0300)
committer
scribu
<mail@scribu.net>
Sun, 19 May 2013 19:06:20 +0000
(22:06 +0300)
features/bootstrap/FeatureContext.php
patch
|
blob
|
history
diff --git
a/features/bootstrap/FeatureContext.php
b/features/bootstrap/FeatureContext.php
index
b48d8f7
..
76d2343
100644
(file)
--- a/
features/bootstrap/FeatureContext.php
+++ b/
features/bootstrap/FeatureContext.php
@@
-69,6
+69,18
@@
class FeatureContext extends BehatContext implements ClosuredContextInterface {
}
/**
+ * @AfterScenario
+ */
+ public function afterScenario( $event ) {
+ if ( !$this->install_dir )
+ return;
+
+ if ( $event->getResult() < 4 ) {
+ Process::create( Utils\esc_cmd( 'rm -r %s', $this->install_dir ) )->run();
+ }
+ }
+
+ /**
* Initializes context.
* Every scenario gets it's own context object.
*