Skip to content

Commit

Permalink
Skip if mkfs.btrfs fails (requires btrfs-progs package)
Browse files Browse the repository at this point in the history
  • Loading branch information
pimzero committed Aug 3, 2022
1 parent 8c33162 commit c9239a4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/by-util/test_cp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1422,10 +1422,15 @@ fn test_cp_reflink_always_override() {
.args(&["-s", "128M", DISK])
.succeeds();

scene
if !scene
.cmd("mkfs.btrfs")
.args(&["--rootdir", ROOTDIR, DISK])
.succeeds();
.run()
.succeeded()
{
print!("Test skipped; couldn't make btrfs disk image");
return;
}

scene.fixtures.mkdir(MOUNTPOINT);

Expand Down

0 comments on commit c9239a4

Please sign in to comment.