summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsueloverso <sue@mongodb.com>2017-08-30 13:12:37 -0400
committerGitHub <noreply@github.com>2017-08-30 13:12:37 -0400
commit4547b213fc9488c5762a8ed54a1cc1a52302d380 (patch)
treea321c03ecb41be3aa22d955f86cbca2aba0f3a73
parent9ab5e592e8ae5f7ad5522dfaf49d8f130d69168e (diff)
downloadmongo-4547b213fc9488c5762a8ed54a1cc1a52302d380.tar.gz
WT-3540 For debugging only copy log files. (#3631)
Tables can be so large that they fill test machine file systems.
-rw-r--r--test/recovery/random-abort.c4
-rw-r--r--test/recovery/timestamp-abort.c5
2 files changed, 6 insertions, 3 deletions
diff --git a/test/recovery/random-abort.c b/test/recovery/random-abort.c
index 78b1d9a6a35..c9c6773800f 100644
--- a/test/recovery/random-abort.c
+++ b/test/recovery/random-abort.c
@@ -350,7 +350,9 @@ main(int argc, char *argv[])
testutil_die(errno, "parent chdir: %s", home);
testutil_check(__wt_snprintf(buf, sizeof(buf),
- "rm -rf ../%s.SAVE; cp -rp ../%s ../%s.SAVE;", home, home, home));
+ "rm -rf ../%s.SAVE; mkdir ../%s.SAVE; "
+ "cp -p WiredTigerLog.* ../%s.SAVE;",
+ home, home, home));
if ((status = system(buf)) < 0)
testutil_die(status, "system: %s", buf);
diff --git a/test/recovery/timestamp-abort.c b/test/recovery/timestamp-abort.c
index 7e912b1fe26..b0b128c2dd9 100644
--- a/test/recovery/timestamp-abort.c
+++ b/test/recovery/timestamp-abort.c
@@ -403,7 +403,7 @@ main(int argc, char *argv[])
uint32_t i, nth, timeout;
int ch, status, ret;
const char *working_dir;
- char buf[128], fname[64], kname[64], statname[1024];
+ char buf[512], fname[64], kname[64], statname[1024];
bool fatal, rand_th, rand_time, verify_only;
(void)testutil_set_progname(argv);
@@ -523,7 +523,8 @@ main(int argc, char *argv[])
if (chdir(home) != 0)
testutil_die(errno, "parent chdir: %s", home);
testutil_check(__wt_snprintf(buf, sizeof(buf),
- "rm -rf ../%s.SAVE && mkdir ../%s.SAVE && cp -rp * ../%s.SAVE",
+ "rm -rf ../%s.SAVE && mkdir ../%s.SAVE && "
+ "cp -p WiredTigerLog.* ../%s.SAVE",
home, home, home));
(void)system(buf);
printf("Open database, run recovery and verify content\n");