diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-02-27 21:37:54 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-02-27 21:37:54 +0000 |
commit | 344a817463684b6388aa79ee8234d58dc40b1f10 (patch) | |
tree | d507f809124a954ef090053e82289a903e89ebc1 | |
parent | 1403da9db51083aa2686d83b68075a85d7f2dfa4 (diff) | |
download | cmdtest-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-x | yarn | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. |