[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [chutney/master] When we fail to parse an option, remind the user to update chutney
commit 6e9658c906bd641d068f680ea707da0bde213b98
Author: teor <teor2345@xxxxxxxxx>
Date: Mon Feb 27 19:56:01 2017 +1100
When we fail to parse an option, remind the user to update chutney
Partial fix for 20091.
---
tools/test-network.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tools/test-network.sh b/tools/test-network.sh
index 2b60ec7..008e410 100755
--- a/tools/test-network.sh
+++ b/tools/test-network.sh
@@ -9,6 +9,9 @@ myname=$(basename "$0")
export CHUTNEY_WARNINGS_IGNORE_EXPECTED=${CHUTNEY_WARNINGS_IGNORE_EXPECTED:-true}
export CHUTNEY_WARNINGS_SUMMARY=${CHUTNEY_WARNINGS_SUMMARY:-true}
+# what we say when we fail
+UPDATE_YOUR_CHUTNEY="Please update your chutney uisng 'git pull'."
+
until [ -z "$1" ]
do
case "$1" in
@@ -107,6 +110,7 @@ do
;;
*)
echo "$myname: Sorry, I don't know what to do with '$1'."
+ echo "$UPDATE_YOUR_CHUTNEY"
# continue processing arguments during a dry run
if [ "$NETWORK_DRY_RUN" != true ]; then
exit 2
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits