cat iptb logs on iptb failure (for debugging CI)
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
Steven Allen committed
Jun 3, 2018 at 12:04 UTC
8f95badb120bc83ab737b966109e309c8b977980
1 file changed
+11
test/sharness/lib/iptb-lib.sh
+11
@@ -17,6 +17,17 @@ check_has_connection() {
17
grep "ipfs" "swarm_peers_$node" >/dev/null
18
}
19
20
+iptb() {
21
+ if ! command iptb "$@"; then
22
+ case "$1" in
23
+ start|stop|connect)
24
+ test_fsh command iptb logs '*'
25
+ ;;
26
+ esac
27
+ return 1
28
+ fi
29
+}
30
+
31
startup_cluster() {
32
num_nodes="$1"
33
shift