test: improve skipped message for topic
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Thu, 05 May 2016 20:14:39 +0200
changeset 1690 52cda77949f5
parent 1689 60752ed8d2d4
child 1691 2ed06153217f
test: improve skipped message for topic The skipped message should point people to a way to solve the situation.
tests/test-evolve-topic.t
--- a/tests/test-evolve-topic.t	Mon May 02 18:40:21 2016 +0200
+++ b/tests/test-evolve-topic.t	Thu May 05 20:14:39 2016 +0200
@@ -1,7 +1,10 @@
 
 Check we can find the topic extensions
 
-  $ [ -e $TOPICROOT/hgext3rd/topic/__init__.py ] || exit 80
+  $ [ -z "$TOPICROOT" ] && echo 'skipped: $TOPICROOT not set' >&2 && exit 80
+  [1]
+  $ [ ! -e $TOPICROOT/hgext3rd/topic/__init__.py ] && echo 'skipped: no topic repo found at $TOPICROOT' >&2 && exit 80
+  [1]
   $ cat >> $HGRCPATH <<EOF
   > [defaults]
   > amend=-d "0 0"