Patchwork [remotefilelog-cleanup] tests: skip tests if lz4 is missing

login
register
mail settings
Submitter Augie Fackler
Date July 16, 2015, 3:32 p.m.
Message ID <d32be2b6041843a6e227.1437060757@imladris.local>
Download mbox | patch
Permalink /patch/10001/
State Accepted
Headers show

Comments

Augie Fackler - July 16, 2015, 3:32 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1437060508 14400
#      Thu Jul 16 11:28:28 2015 -0400
# Node ID d32be2b6041843a6e227bf7e8144acc66dd69af6
# Parent  56443b2b25f017e97df717360340ebae777f6bb5
tests: skip tests if lz4 is missing

This prevents lots of useless test output if lz4 is missing on a machine.
Durham Goode - July 16, 2015, 5:40 p.m.
Queued

On 7/16/15, 8:32 AM, "raf@durin42.com" <raf@durin42.com> wrote:

># HG changeset patch
># User Augie Fackler <augie@google.com>
># Date 1437060508 14400
>#      Thu Jul 16 11:28:28 2015 -0400
># Node ID d32be2b6041843a6e227bf7e8144acc66dd69af6
># Parent  56443b2b25f017e97df717360340ebae777f6bb5
>tests: skip tests if lz4 is missing
>
>This prevents lots of useless test output if lz4 is missing on a machine.
>
>diff --git a/tests/library.sh b/tests/library.sh
>--- a/tests/library.sh
>+++ b/tests/library.sh
>@@ -1,3 +1,5 @@
>+python -c 'import lz4' || exit 80
>+
> cp `echo $HGRCPATH` ./
> CACHEDIR=$PWD/hgcache
> cat >> .hgrc <<EOF

Patch

diff --git a/tests/library.sh b/tests/library.sh
--- a/tests/library.sh
+++ b/tests/library.sh
@@ -1,3 +1,5 @@ 
+python -c 'import lz4' || exit 80
+
 cp `echo $HGRCPATH` ./
 CACHEDIR=$PWD/hgcache
 cat >> .hgrc <<EOF