test-fileset: remove bashism, use test instead of '[[ ]]'
authorYuya Nishihara <yuya@tcha.org>
Tue, 16 Jun 2015 22:47:05 +0900
changeset 25587 49fb24f72747
parent 25586 e7455316261d
child 25588 b40071379c5b
test-fileset: remove bashism, use test instead of '[[ ]]' Debian dash complains about it. $TESTTMP.sh: 213: $TESTTMP.sh: [[: not found
tests/test-fileset.t
--- a/tests/test-fileset.t	Wed Jun 03 18:30:25 2015 +0800
+++ b/tests/test-fileset.t	Tue Jun 16 22:47:05 2015 +0900
@@ -226,7 +226,7 @@
   b
   $ oldnode=`hg log -r tip -T "{node}\n"`
   $ newnode=`hg log -R ../converted -r tip -T "{node}\n"`
-  $ [[ "$oldnode" != "$newnode" ]] || echo "nothing changed"
+  $ [ "$oldnode" != "$newnode" ] || echo "nothing changed"
 
 Test with a revision