mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-01 22:37:51 +08:00
Verify creation of file created by cp -p
This commit is contained in:
parent
ff3fff107b
commit
0af19abe6b
@ -300,6 +300,12 @@ test_files_api() {
|
||||
ipfs files cp -p /ipfs/$FILE3 /cats/some/other/dir/file3
|
||||
'
|
||||
|
||||
test_expect_success "file copied into deep dir exists $EXTRA" '
|
||||
ipfs files read /cats/some/other/dir/file3 > file_out &&
|
||||
echo "baz" > file_exp &&
|
||||
test_cmp file_out file_exp
|
||||
'
|
||||
|
||||
test_expect_success "cleanup deep cp -p test $EXTRA" '
|
||||
ipfs files rm -r /cats/some
|
||||
'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user