From 628e458e7db54ab63d6226c9012f2f69f99d10ff Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Tue, 7 Jun 2016 23:15:07 +0200 Subject: [PATCH] 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 --- test/bin/time-out | 8 -------- test/sharness/t0500-issues-and-regressions-offline.sh | 6 ++++++ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/test/bin/time-out b/test/bin/time-out index 5c19d2ec9..47d863bd0 100755 --- a/test/bin/time-out +++ b/test/bin/time-out @@ -6,14 +6,6 @@ # # Based on the Bash documentation example. -# Hello Chet, -# please find attached a "little easier" :-) to comprehend -# time-out example. If you find it suitable, feel free to include -# anywhere: the very same logic as in the original examples/scripts, a -# little more transparent implementation to my taste. -# -# Dmitry V Golovashkin - scriptName="${0##*/}" declare -i DEFAULT_TIMEOUT=9 diff --git a/test/sharness/t0500-issues-and-regressions-offline.sh b/test/sharness/t0500-issues-and-regressions-offline.sh index 866edba0c..5e7550655 100755 --- a/test/sharness/t0500-issues-and-regressions-offline.sh +++ b/test/sharness/t0500-issues-and-regressions-offline.sh @@ -8,4 +8,10 @@ test_init_ipfs # Tests go here +test_expect_success "ipfs init with occupied input works - #2748" ' + export IPFS_PATH="ipfs_path" + echo "" | time-out ipfs init && + rm -rf ipfs_path +' + test_done