summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-02-27 21:37:54 +0000
committerLars Wirzenius <liw@liw.fi>2014-02-27 21:37:54 +0000
commit344a817463684b6388aa79ee8234d58dc40b1f10 (patch)
treed507f809124a954ef090053e82289a903e89ebc1
parent1403da9db51083aa2686d83b68075a85d7f2dfa4 (diff)
downloadcmdtest-344a817463684b6388aa79ee8234d58dc40b1f10.tar.gz
When snapshotting datadir, don't cross mounts
This should fix problems with snapshotting datadir when there is a FUSE mount in there, for example.
-rwxr-xr-xyarn2
1 files changed, 1 insertions, 1 deletions
diff --git a/yarn b/yarn
index af25d21..f2b48b5 100755
--- a/yarn
+++ b/yarn
@@ -454,7 +454,7 @@ 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', '-a', datadir, snapshot])
+ cliapp.runcmd(['cp', '-ax', datadir, snapshot])
def nice(self, name):
# Quote a scenario or step name so it forms a nice filename.