Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: flush coverage report in defer function
Do not flush it atexit(), where the test report file might be already closed and it causes go test failure like: PASS testing: can't write /tmp/go-build146132196/b001/testlog.txt: close /tmp/go-build146132196/b001/testlog.txt: file already closed FAIL github.com/kata-containers/runtime/cli 4.256s Signed-off-by: Peng Tao <bergwolf@hyper.sh>
- Loading branch information