Ignore watch test even on normal kcov run

This commit is contained in:
Rune Tynan 2024-03-31 13:37:59 -07:00
parent 16e809ff77
commit 265133751b
No known key found for this signature in database
GPG Key ID: 7ECC932F8B2C731E
2 changed files with 4 additions and 3 deletions

View File

@ -45,6 +45,7 @@ steps:
- bash: |
set -xeuo pipefail
export TECTONIC_KCOV_RUN=1
cargo kcov --no-clean-rebuild -- --include-path="$(pwd)" --exclude-pattern=/tests/
displayName: cargo kcov

View File

@ -1058,7 +1058,7 @@ fn extra_search_paths() {
#[cfg(all(feature = "serialization", not(target_arch = "mips")))]
#[test]
fn v2_watch_succeeds() {
if KCOV_WORDS.len() > 0 {
if KCOV_WORDS.len() > 0 || env::var("TECTONIC_KCOV_RUN").is_some() {
return; // See run_tectonic_until() for an explanation of why this test must be skipped
}
@ -1107,8 +1107,8 @@ fn v2_watch_succeeds() {
// success_or_panic(&output);
let stdout = String::from_utf8_lossy(&output.stdout);
let stderr = String::from_utf8_lossy(&output.stderr);
println!("stdout:\n{}", stdout);
println!("stderr:\n{}", stderr);
println!("-- stdout --\n{}\n-- end stdout --", stdout);
println!("-- stderr --\n{}\n-- end stderr --", stderr);
thread.join().unwrap();