summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAbin Simon <abinsimon10@gmail.com>2020-12-23 10:24:51 +0530
committerAbin Simon <abinsimon10@gmail.com>2021-01-01 13:26:06 +0530
commitc089af22abcd52da48de1d42bf6c401ec9061c11 (patch)
tree0c5db0644417be30fc8bae34c44338e5b6b8ac12 /tests
parente3649fede8f7fc64041b709c56a3438ddbf813f0 (diff)
respect blocks passed without long from cli
When reading from config, we do not take into consideration the value of blocks until we pass -l in the cli args, but if the user passes in blocks via the cli, the -l flag is implied.
Diffstat (limited to 'tests')
-rw-r--r--tests/integration.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/integration.rs b/tests/integration.rs
index 4f09ad7..7b4eb86 100644
--- a/tests/integration.rs
+++ b/tests/integration.rs
@@ -128,7 +128,10 @@ fn test_list_block_inode_populated_directory_without_long() {
dir.child("one").touch().unwrap();
dir.child("two").touch().unwrap();
- let matched = "one\ntwo\n$";
+ #[cfg(windows)]
+ let matched = "- one\n\\- two\n$";
+ #[cfg(unix)]
+ let matched = "\\d+ one\n\\d+ two\n$";
cmd()
.arg("--blocks")