From: Arvin Schnell Date: Mon, 28 Feb 2011 14:21:32 +0000 (+0100) Subject: - some tiny adaptions X-Git-Tag: v0.1.3~450 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=657eafc8feee18c10f08232502095322315abe6c;p=thirdparty%2Fsnapper.git - some tiny adaptions --- diff --git a/scripts/snapper-daily b/scripts/snapper-daily index ff266dad..64f4a9e2 100755 --- a/scripts/snapper-daily +++ b/scripts/snapper-daily @@ -19,7 +19,7 @@ fi # # run snapper for all configs # -for CONFIG in $CONFIGS ; do +for CONFIG in $SNAPPER_CONFIGS ; do NUMBER_CLEANUP="no" TIMELINE_CLEANUP="no" diff --git a/scripts/snapper-hourly b/scripts/snapper-hourly index 0ec5c69e..da1bb737 100755 --- a/scripts/snapper-hourly +++ b/scripts/snapper-hourly @@ -19,7 +19,7 @@ fi # # run snapper for all configs # -for CONFIG in $CONFIGS ; do +for CONFIG in $SNAPPER_CONFIGS ; do TIMELINE_CREATE="no" diff --git a/testsuite-real/common.cc b/testsuite-real/common.cc index 3b6798c5..0a7a116d 100644 --- a/testsuite-real/common.cc +++ b/testsuite-real/common.cc @@ -19,7 +19,7 @@ extern char* program_invocation_short_name; using namespace snapper; -#define ROOTDIR "/test" +#define SUBVOLUME "/test" Snapper* sh = NULL; @@ -30,12 +30,12 @@ Snapshots::iterator second; void setup() { - system("/usr/bin/find " ROOTDIR " -mindepth 1 -maxdepth 1 -not -path " ROOTDIR "/snapshots " + system("/usr/bin/find " SUBVOLUME " -mindepth 1 -maxdepth 1 -not -path " SUBVOLUME "/snapshots " "-exec rm -r {} \\;"); initDefaultLogger(); - sh = createSnapper(ROOTDIR); + sh = createSnapper("testsuite"); } @@ -103,6 +103,6 @@ check_first() void run_command(const char* command) { - string tmp = string("cd " ROOTDIR " ; ") + command; + string tmp = string("cd " SUBVOLUME " ; ") + command; check_zero(system(tmp.c_str())); }