Patchwork [1,of,5] tests: fix void and invalid test in test-archive.t

login
register
mail settings
Submitter Mads Kiilerich
Date Oct. 3, 2013, 12:56 p.m.
Message ID <77fa0218c265bd0c43ad.1380805019@mk-desktop>
Download mbox | patch
Permalink /patch/2718/
State Accepted
Commit 055d5b3f83b11688ee5187dc49e210178b8c2de2
Headers show

Comments

Mads Kiilerich - Oct. 3, 2013, 12:56 p.m.
# HG changeset patch
# User Mads Kiilerich <madski@unity3d.com>
# Date 1380804646 -7200
#      Thu Oct 03 14:50:46 2013 +0200
# Node ID 77fa0218c265bd0c43ad113da9fba6d4a30240f5
# Parent  a69a77a80900eabe1257c935818d0910217e9702
tests: fix void and invalid test in test-archive.t

An echo statement was missed in the .t-ification in afe19a1bf9d3 so we ended up
with invalid sh syntax. But at the same time a continuation line was marked as
$ instead of > and we thus added the salt that made the expression valid again.

Patch

diff --git a/tests/test-archive.t b/tests/test-archive.t
--- a/tests/test-archive.t
+++ b/tests/test-archive.t
@@ -209,8 +209,7 @@ 
   test-2c0277f05ed4/foo
 
   $ hg archive -r 0 -t tar rev-%r.tar
-  $ if [ -f rev-0.tar ]; then
-  $ fi
+  $ [ -f rev-0.tar ]
 
 test .hg_archival.txt