Problem with initializing daemon on same port
At this point I think this test should be moved out of this file
Travis Person committed
Apr 20, 2015 at 19:33 UTC
e7756e45f9a07249fb71e0f84c1599e77bd29430
1 file changed
+5
-4
test/sharness/t0020-init.sh
+5
-4
@@ -44,13 +44,14 @@ test_expect_success "ipfs init output looks good" '
44
test_cmp expected actual_init
45
'
46
47
+test_init_ipfs
48
+
49
test_launch_ipfs_daemon
50
51
test_expect_failure "ipfs init should not run while daemon is running" '
50
- ipfs init 2> daemon_running_output
51
- echo "Error: ipfs daemon is running. please stop it to run this command" > daemon_running_expected
52
- echo "Use \'ipfs init --help\' for information about this command" >> daemon_running_expected
53
- test_cmp daemon_running_expected daemon_running_output
52
+ ipfs init 2> daemon_running_err &&
53
+ expect="Error: ipfs daemon is running. please stop it to run this command" &&
54
+ cat daemon_running_err | grep $expect
55
'
56
57
test_kill_ipfs_daemon