mirror of
https://github.com/lsd-rs/lsd
synced 2024-12-13 13:42:34 +00:00
fix wsl tests
This commit is contained in:
parent
8feb49ad20
commit
470e24b683
1 changed files with 4 additions and 7 deletions
|
@ -103,10 +103,10 @@ fn test_list_inode_populated_directory() {
|
|||
dir.child("one").touch().unwrap();
|
||||
dir.child("two").touch().unwrap();
|
||||
|
||||
#[cfg(unix)]
|
||||
let matched = "\\d+ one\n\\d+ two\n$";
|
||||
#[cfg(windows)]
|
||||
let matched = "- one\n\\- two\n$";
|
||||
#[cfg(unix)]
|
||||
let matched = "\\d+ one\n\\d+ two\n$";
|
||||
|
||||
cmd()
|
||||
.arg("--inode")
|
||||
|
@ -128,9 +128,6 @@ fn test_list_block_inode_populated_directory_without_long() {
|
|||
dir.child("one").touch().unwrap();
|
||||
dir.child("two").touch().unwrap();
|
||||
|
||||
#[cfg(unix)]
|
||||
let matched = "one\ntwo\n$";
|
||||
#[cfg(windows)]
|
||||
let matched = "one\ntwo\n$";
|
||||
|
||||
cmd()
|
||||
|
@ -148,10 +145,10 @@ fn test_list_block_inode_populated_directory_with_long() {
|
|||
dir.child("one").touch().unwrap();
|
||||
dir.child("two").touch().unwrap();
|
||||
|
||||
#[cfg(unix)]
|
||||
let matched = "\\d+ one\n\\d+ two\n$";
|
||||
#[cfg(windows)]
|
||||
let matched = "- one\n\\- two\n$";
|
||||
#[cfg(unix)]
|
||||
let matched = "\\d+ one\n\\d+ two\n$";
|
||||
|
||||
cmd()
|
||||
.arg("--long")
|
||||
|
|
Loading…
Reference in a new issue