Patchwork [2,of,2] tests: guard test-archive-symlink with unziplinks check

login
register
mail settings
Submitter Augie Fackler
Date Aug. 25, 2016, 5:29 a.m.
Message ID <6f46dd11cc750a822823.1472102945@imladris.local>
Download mbox | patch
Permalink /patch/16411/
State Accepted
Headers show

Comments

Augie Fackler - Aug. 25, 2016, 5:29 a.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1472102799 14400
#      Thu Aug 25 01:26:39 2016 -0400
# Node ID 6f46dd11cc750a8228232ea0cd80ae5fee588bf7
# Parent  f4d18b053d9d6705057e1dd105201d86667582bb
tests: guard test-archive-symlink with unziplinks check

This fixes the test on FreeBSD, where the stock unzip doesn't
understand symlinks.

Patch

diff --git a/tests/test-archive-symlinks.t b/tests/test-archive-symlinks.t
--- a/tests/test-archive-symlinks.t
+++ b/tests/test-archive-symlinks.t
@@ -29,6 +29,7 @@  tar
   $ readlink.py dangling
   dangling -> nothing
 
+#if unziplinks
 zip
 
   $ cd "$origdir"
@@ -36,5 +37,6 @@  zip
   $ cd zip
   $ readlink.py dangling
   dangling -> nothing
+#endif
 
   $ cd ..