Add regression sharness test for ipfs init
This tests expects ipfs init with no arguments to work even with occuipied stdin. License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
Jakub Sztandera committed
Jun 7, 2016 at 23:15 UTC
628e458e7db54ab63d6226c9012f2f69f99d10ff
2 files changed
+6
-8
test/bin/time-out
-8
@@ -6,14 +6,6 @@
6
#
7
# Based on the Bash documentation example.
8
9
-# Hello Chet,
10
-# please find attached a "little easier" :-) to comprehend
11
-# time-out example. If you find it suitable, feel free to include
12
-# anywhere: the very same logic as in the original examples/scripts, a
13
-# little more transparent implementation to my taste.
14
-#
15
-# Dmitry V Golovashkin <Dmitry.Golovashkin@sas.com>
16
-
9
scriptName="${0##*/}"
10
11
declare -i DEFAULT_TIMEOUT=9
test/sharness/t0500-issues-and-regressions-offline.sh
+6
@@ -8,4 +8,10 @@ test_init_ipfs
8
9
# Tests go here
10
11
+test_expect_success "ipfs init with occupied input works - #2748" '
12
+ export IPFS_PATH="ipfs_path"
13
+ echo "" | time-out ipfs init &&
14
+ rm -rf ipfs_path
15
+'
16
+
17
test_done