Patchwork D7596: tests: replace [[]] bashism with portable [] invocation

login
register
mail settings
Submitter phabricator
Date Dec. 10, 2019, 3:47 p.m.
Message ID <1edb6f77609858f05045e2acd4ff57c3@localhost.localdomain>
Download mbox | patch
Permalink /patch/43677/
State Not Applicable
Headers show

Comments

phabricator - Dec. 10, 2019, 3:47 p.m.
Closed by commit rHG36444dddaeb4: tests: replace [[]] bashism with portable [] invocation (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7596?vs=18568&id=18579

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7596/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7596

AFFECTED FILES
  tests/test-amend.t

CHANGE DETAILS




To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/tests/test-amend.t b/tests/test-amend.t
--- a/tests/test-amend.t
+++ b/tests/test-amend.t
@@ -493,7 +493,7 @@ 
   $ sleep 1
   $ echo delta >> foo
   $ sleep 3
-  $ if (hg diff -c . | grep 'delta' >/dev/null) || [[ -n "$(hg status)" ]]; then
+  $ if (hg diff -c . | grep 'delta' >/dev/null) || [ -n "$(hg status)" ]; then
   >   echo "OK."
   > else
   >   echo "Bug detected. 'delta' is not part of the commit OR the wdir"