Fix bat cache --clear not clearing the --target dir if specified

This commit is contained in:
Miles Liu committed 2022-11-19 18:00:37 +08:00
1 parent 7c847d84b0
commit e39178b101
4 files changed
+55 -55

No files matched your search

-3
View File
@@ -892,11 +892,8 @@ fn config_read_arguments_from_file() {
.stdout(predicate::eq("dummy-pager-from-config\n").normalize());
}
// Ignore this test for now as `bat cache --clear` only targets the default cache dir.
// `bat cache --clear` must clear the `--target` dir for this test to pass.
#[cfg(unix)]
#[test]
#[ignore]
fn cache_clear() {
let src_dir = "cache_source";
let tmp_dir = tempdir().expect("can create temporary directory");