From 051e39d50a9dd7893f9030bf6c7947f930e8f0ce Mon Sep 17 00:00:00 2001 From: brinn <brinn> Date: Thu, 6 Sep 2012 21:45:06 +0000 Subject: [PATCH] Fix: unit test expectations after changing flags to rsync. SVN: 26545 --- .../cisd/common/filesystem/rsync/RsyncCopierTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/sourceTest/java/ch/systemsx/cisd/common/filesystem/rsync/RsyncCopierTest.java b/common/sourceTest/java/ch/systemsx/cisd/common/filesystem/rsync/RsyncCopierTest.java index d4533e0af54..6fd0dfc0424 100644 --- a/common/sourceTest/java/ch/systemsx/cisd/common/filesystem/rsync/RsyncCopierTest.java +++ b/common/sourceTest/java/ch/systemsx/cisd/common/filesystem/rsync/RsyncCopierTest.java @@ -373,7 +373,7 @@ public final class RsyncCopierTest final Status status = copier.copy(sourceDirectory, destinationDirectory); assertEquals(Status.OK, status); final String expectedRsyncCmdLine = - String.format("--archive --delete --inplace --append %s %s/\n", + String.format("--archive --delete-before --inplace --append %s %s/\n", sourceDirectory.getAbsolutePath(), destinationDirectory.getAbsolutePath()); final String observedRsyncCmdLine = FileUtilities.loadToString(parametersLogFile); assertEquals(expectedRsyncCmdLine, observedRsyncCmdLine); @@ -391,7 +391,7 @@ public final class RsyncCopierTest final Status status = copier.copyContent(sourceDirectory, destinationDirectory); assertEquals(Status.OK, status); final String expectedRsyncCmdLine = - String.format("--archive --delete --inplace --append %s/ %s/\n", + String.format("--archive --delete-before --inplace --append %s/ %s/\n", sourceDirectory.getAbsolutePath(), destinationDirectory.getAbsolutePath()); final String observedRsyncCmdLine = FileUtilities.loadToString(parametersLogFile); assertEquals(expectedRsyncCmdLine, observedRsyncCmdLine); -- GitLab