summaryrefslogtreecommitdiff
path: root/yarn
diff options
context:
space:
mode:
Diffstat (limited to 'yarn')
-rwxr-xr-xyarn5
1 files changed, 4 insertions, 1 deletions
diff --git a/yarn b/yarn
index bb62493..c34ccbb 100755
--- a/yarn
+++ b/yarn
@@ -454,7 +454,10 @@ class YarnRunner(cliapp.Application):
def snapshot_datadir(self, tempdir, datadir, scenario, step_number, step):
snapshot = self.snapshot_dir(tempdir, scenario, step, step_number)
- cliapp.runcmd(['cp', '-ax', datadir, snapshot])
+ exit, out, err = cliapp.runcmd_unchecked(
+ ['cp', '-ax', datadir, snapshot])
+ if exit != 0:
+ logging.warning('Snapshot copy failed:\n%s\n%s' % (out, err))
def nice(self, name):
# Quote a scenario or step name so it forms a nice filename.