Skip to content

Commit

Permalink
test(nydus-image): remove unneeded tree dependency in unit test
Browse files Browse the repository at this point in the history
Use `ls -R` instead, to avoid using `tree`.

fix dragonflyoss#432

Signed-off-by: Qi Wang <[email protected]>
  • Loading branch information
yawqi committed May 17, 2022
1 parent 1c0598e commit 40bd110
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/nydus-image/builder/diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -979,11 +979,11 @@ pub mod tests {

println!(
"lower dir:\n {}",
exec(&format!("tree -a {:?}", lower_dir), true).unwrap()
exec(&format!("ls -R {:?}", lower_dir), true).unwrap()
);
println!(
"merge dir:\n{}",
exec(&format!("tree -a {:?}", merge_dir), true).unwrap()
exec(&format!("ls -R {:?}", merge_dir), true).unwrap()
);

// Diff build lower layer
Expand Down

0 comments on commit 40bd110

Please sign in to comment.