Make sharness tests' output helpful when verbose.
This means cating certain files, or running diagnostic
commands. I used a construction like:
test_expect_success ".go-ipfs/ has been created" '
test -d ".go-ipfs" &&
test -f ".go-ipfs/config" &&
test -d ".go-ipfs/datastore" ||
fsh ls -al .go-ipfs
'
The `|| ...` is a diagnostic run when the preceding command
fails. `fsh` is a trivial script that echoes the args, runs
the cmd, and then also fails, making sure the test case fails.
(wouldnt want the diagnostic accidentally returning true and
making it _seem_ like the test case succeeded).
| 名称 |
最后提交
|
最后更新 |
|---|---|---|
| Godeps | 正在载入提交数据... | |
| blocks | 正在载入提交数据... | |
| blockservice | 正在载入提交数据... | |
| cmd | 正在载入提交数据... | |
| commands | 正在载入提交数据... | |
| config | 正在载入提交数据... | |
| core | 正在载入提交数据... | |
| diagnostics | 正在载入提交数据... | |
| dockertest | 正在载入提交数据... | |
| epictest | 正在载入提交数据... | |
| exchange | 正在载入提交数据... | |
| fuse | 正在载入提交数据... | |
| importer | 正在载入提交数据... | |
| merkledag | 正在载入提交数据... | |
| namesys | 正在载入提交数据... | |
| p2p | 正在载入提交数据... | |
| path | 正在载入提交数据... | |
| pin | 正在载入提交数据... | |
| repo | 正在载入提交数据... | |
| routing | 正在载入提交数据... | |
| server/http | 正在载入提交数据... | |
| test | 正在载入提交数据... | |
| tour | 正在载入提交数据... | |
| unixfs | 正在载入提交数据... | |
| updates | 正在载入提交数据... | |
| util | 正在载入提交数据... | |
| .dockerignore | 正在载入提交数据... | |
| .gitignore | 正在载入提交数据... | |
| .travis.yml | 正在载入提交数据... | |
| Dockerfile | 正在载入提交数据... | |
| LICENSE | 正在载入提交数据... | |
| Makefile | 正在载入提交数据... | |
| README.md | 正在载入提交数据... | |
| dev.md | 正在载入提交数据... | |
| doc.go | 正在载入提交数据... |