termscp icon indicating copy to clipboard operation
termscp copied to clipboard

Packaging for openSUSE: Is there a way to disable failing tests?

Open kastl-ars opened this issue 7 months ago • 1 comments

I am packaging termscp for openSUSE. The package builds fine, but some of the tests fail.

This could totally be because the build environment is special. All builds are done offline, with all dependencies vendored before and provided during build.

The tests that are failing are the following:

[  532s] 
[  532s] failures:
[  532s] 
[  532s] ---- system::keys::keyringstorage::tests::test_system_keys_keyringstorage stdout ----
[  532s] thread 'system::keys::keyringstorage::tests::test_system_keys_keyringstorage' panicked at src/system/keys/keyringstorage.rs:88:9:
[  532s] assertion failed: storage.is_supported()
[  532s] 
[  532s] ---- system::auto_update::test::auto_update stdout ----
[  532s] Checking target-arch... x86_64-unknown-linux-gnu
[  532s] Checking current version... v0.14.0
[  532s] Checking latest released version... thread 'system::auto_update::test::auto_update' panicked at src/system/auto_update.rs:159:18:
[  532s] called `Option::unwrap()` on a `None` value
[  532s] 
[  532s] ---- system::auto_update::test::check_for_updates stdout ----
[  532s] Err(Network("api request failed with status: 403 - for: \"https://api.github.com/repos/veeso/termscp/releases/latest\""))
[  532s] thread 'system::auto_update::test::check_for_updates' panicked at src/system/auto_update.rs:171:9:
[  532s] assertion failed: Update::is_new_version_available().is_ok()
[  532s] 
[  532s] 
[  532s] failures:
[  532s]     system::auto_update::test::auto_update
[  532s]     system::auto_update::test::check_for_updates
[  532s]     system::keys::keyringstorage::tests::test_system_keys_keyringstorage
[  532s] 
[  532s] test result: FAILED. 199 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.02s

Is it possible to disable only those tests (and not the tests globally)? Not sure if I could use the --features flag for this? But I think there is no feature that disables the auto_update tests...

Thanks in advance, Johannes

kastl-ars avatar Jul 22 '24 11:07 kastl-ars