mirror of
https://github.com/sharkdp/bat
synced 2024-11-23 12:23:19 +00:00
Update comments in tests/integration_tests.rs
This commit is contained in:
parent
d084cdc72b
commit
1224403aa1
1 changed files with 8 additions and 1 deletions
|
@ -892,7 +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 projects dir
|
||||
// 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]
|
||||
|
@ -912,6 +913,9 @@ fn cache_clear() {
|
|||
.count();
|
||||
|
||||
// Clear the targeted cache
|
||||
// Include the BAT_CONFIG_PATH and BAT_THEME environment variables to ensure that
|
||||
// options loaded from a config or the environment are not inserted
|
||||
// before the cache subcommand, which would break it.
|
||||
bat_with_config()
|
||||
.current_dir(Path::new(EXAMPLES_DIR).join(src_dir))
|
||||
.env("BAT_CONFIG_PATH", "bat.conf")
|
||||
|
@ -950,6 +954,9 @@ fn cache_build() {
|
|||
let tmp_metadata_path = tmp_dir.path().join("metadata.yaml");
|
||||
|
||||
// Build the cache
|
||||
// Include the BAT_CONFIG_PATH and BAT_THEME environment variables to ensure that
|
||||
// options loaded from a config or the environment are not inserted
|
||||
// before the cache subcommand, which would break it.
|
||||
bat_with_config()
|
||||
.current_dir(Path::new(EXAMPLES_DIR).join(src_dir))
|
||||
.env("BAT_CONFIG_PATH", "bat.conf")
|
||||
|
|
Loading…
Reference in a new issue