提交 676fd50c 作者: Travis Person

Correctly written test for ipfs init with daemon

上级 e7756e45
...@@ -48,10 +48,10 @@ test_init_ipfs ...@@ -48,10 +48,10 @@ test_init_ipfs
test_launch_ipfs_daemon test_launch_ipfs_daemon
test_expect_failure "ipfs init should not run while daemon is running" ' test_expect_success "ipfs init should not run while daemon is running" '
ipfs init 2> daemon_running_err && test_must_fail ipfs init 2> daemon_running_err &&
expect="Error: ipfs daemon is running. please stop it to run this command" && EXPECT="Error: ipfs daemon is running. please stop it to run this command" &&
cat daemon_running_err | grep $expect grep "$EXPECT" daemon_running_err
' '
test_kill_ipfs_daemon test_kill_ipfs_daemon
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论