提交 b4718a24 作者: Jeromy

fix tests for changed migrations text

License: MIT
Signed-off-by: 's avatarJeromy <why@ipfs.io>
上级 b213d690
...@@ -23,11 +23,11 @@ test_expect_success "manually reset repo version to 3" ' ...@@ -23,11 +23,11 @@ test_expect_success "manually reset repo version to 3" '
' '
test_expect_success "ipfs daemon --migrate=false fails" ' test_expect_success "ipfs daemon --migrate=false fails" '
test_expect_code 1 ipfs daemon --migrate=false 2> false_out test_expect_code 1 ipfs daemon --migrate=false > false_out
' '
test_expect_success "output looks good" ' test_expect_success "output looks good" '
grep "please run the migrations manually" false_out grep "Please get fs-repo-migrations from https://dist.ipfs.io" false_out
' '
test_expect_success "ipfs daemon --migrate=true runs migration" ' test_expect_success "ipfs daemon --migrate=true runs migration" '
...@@ -35,8 +35,8 @@ test_expect_success "ipfs daemon --migrate=true runs migration" ' ...@@ -35,8 +35,8 @@ test_expect_success "ipfs daemon --migrate=true runs migration" '
' '
test_expect_success "output looks good" ' test_expect_success "output looks good" '
grep "running migration" true_out > /dev/null && grep "Running: " true_out > /dev/null &&
grep "binary completed successfully" true_out > /dev/null grep "Success: fs-repo has been migrated to version 4." true_out > /dev/null
' '
test_expect_success "'ipfs daemon' prompts to auto migrate" ' test_expect_success "'ipfs daemon' prompts to auto migrate" '
...@@ -44,9 +44,9 @@ test_expect_success "'ipfs daemon' prompts to auto migrate" ' ...@@ -44,9 +44,9 @@ test_expect_success "'ipfs daemon' prompts to auto migrate" '
' '
test_expect_success "output looks good" ' test_expect_success "output looks good" '
grep "Found old repo version" daemon_out > /dev/null && grep "Found outdated fs-repo" daemon_out > /dev/null &&
grep "Run migrations automatically?" daemon_out > /dev/null && grep "Run migrations now?" daemon_out > /dev/null &&
grep "please run the migrations manually" daemon_err > /dev/null grep "Please get fs-repo-migrations from https://dist.ipfs.io" daemon_out > /dev/null
' '
test_done test_done
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论