Daniel Erez has uploaded a new change for review.

Change subject: core: TarTest - assume Unix OS
......................................................................

core: TarTest - assume Unix OS

TarTest requires tar utility.
Therefore, ignoring test for non-Unix machines.

Change-Id: I1c80cb652f4d3e633295d9bd88bc05d806c1d34f
Signed-off-by: Daniel Erez <[email protected]>
---
M 
backend/manager/modules/utils/src/test/java/org/ovirt/engine/core/utils/archivers/tar/TarTest.java
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/39/10739/1

diff --git 
a/backend/manager/modules/utils/src/test/java/org/ovirt/engine/core/utils/archivers/tar/TarTest.java
 
b/backend/manager/modules/utils/src/test/java/org/ovirt/engine/core/utils/archivers/tar/TarTest.java
index f965204..ab6f71c 100644
--- 
a/backend/manager/modules/utils/src/test/java/org/ovirt/engine/core/utils/archivers/tar/TarTest.java
+++ 
b/backend/manager/modules/utils/src/test/java/org/ovirt/engine/core/utils/archivers/tar/TarTest.java
@@ -12,10 +12,12 @@
 import java.security.MessageDigest;
 import java.util.Arrays;
 
+import org.apache.commons.lang.SystemUtils;
 import org.junit.Test;
 import static org.junit.Assert.assertArrayEquals;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
+import static org.junit.Assume.assumeTrue;
 
 public class TarTest {
 
@@ -76,6 +78,7 @@
 
     @Test
     public void testSimple() throws Exception {
+        assumeTrue(SystemUtils.IS_OS_UNIX);
 
         File tmpTar = null;
         File tmpDir1 = null;


--
To view, visit http://gerrit.ovirt.org/10739
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1c80cb652f4d3e633295d9bd88bc05d806c1d34f
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Daniel Erez <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to