mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 01:26:04 -08:00
fix: isolated-tests feature to run tests for releasing on distributions which run in isolated environments (#286)
* fix: `isolated-tests` feature to run tests for releasing on distributions which run in isolated environments * fix: cond
This commit is contained in:
committed by
GitHub
parent
fc68e2621b
commit
8e2ffeabce
@@ -48,6 +48,7 @@ Released on
|
|||||||
- Pod and container argumets have been removed; from now on you will connect with the following syntax to the provided namespace: `/pod-name/container-name/path/to/file`
|
- Pod and container argumets have been removed; from now on you will connect with the following syntax to the provided namespace: `/pod-name/container-name/path/to/file`
|
||||||
- [Issue 279](https://github.com/veeso/termscp/issues/279): do not clear screen
|
- [Issue 279](https://github.com/veeso/termscp/issues/279): do not clear screen
|
||||||
- [Issue 277](https://github.com/veeso/termscp/issues/277): Fix a bug in the configuration page, which caused being stuck if the added SSH key was empty
|
- [Issue 277](https://github.com/veeso/termscp/issues/277): Fix a bug in the configuration page, which caused being stuck if the added SSH key was empty
|
||||||
|
- [Issue 272](https://github.com/veeso/termscp/issues/272): `isolated-tests` feature to run tests for releasing on distributions which run in isolated environments
|
||||||
|
|
||||||
## 0.14.0
|
## 0.14.0
|
||||||
|
|
||||||
|
|||||||
@@ -94,8 +94,9 @@ cfg_aliases = "0.2"
|
|||||||
[features]
|
[features]
|
||||||
default = ["smb", "with-keyring"]
|
default = ["smb", "with-keyring"]
|
||||||
github-actions = []
|
github-actions = []
|
||||||
with-keyring = ["keyring"]
|
isolated-tests = []
|
||||||
smb = ["remotefs-smb"]
|
smb = ["remotefs-smb"]
|
||||||
|
with-keyring = ["keyring"]
|
||||||
|
|
||||||
[target."cfg(not(target_os = \"macos\"))".dependencies]
|
[target."cfg(not(target_os = \"macos\"))".dependencies]
|
||||||
remotefs-smb = { version = "^0.3", optional = true }
|
remotefs-smb = { version = "^0.3", optional = true }
|
||||||
|
|||||||
@@ -145,10 +145,13 @@ mod test {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(all(
|
#[cfg(all(
|
||||||
|
not(all(
|
||||||
any(target_os = "macos", target_os = "freebsd"),
|
any(target_os = "macos", target_os = "freebsd"),
|
||||||
feature = "github-actions"
|
feature = "github-actions"
|
||||||
)))]
|
)),
|
||||||
|
not(feature = "isolated-tests")
|
||||||
|
))]
|
||||||
fn auto_update() {
|
fn auto_update() {
|
||||||
// Wno version
|
// Wno version
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
@@ -162,10 +165,13 @@ mod test {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(all(
|
#[cfg(all(
|
||||||
|
not(all(
|
||||||
any(target_os = "macos", target_os = "freebsd"),
|
any(target_os = "macos", target_os = "freebsd"),
|
||||||
feature = "github-actions"
|
feature = "github-actions"
|
||||||
)))]
|
)),
|
||||||
|
not(feature = "isolated-tests")
|
||||||
|
))]
|
||||||
fn check_for_updates() {
|
fn check_for_updates() {
|
||||||
println!("{:?}", Update::is_new_version_available());
|
println!("{:?}", Update::is_new_version_available());
|
||||||
assert!(Update::is_new_version_available().is_ok());
|
assert!(Update::is_new_version_available().is_ok());
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ mod tests {
|
|||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(not(feature = "isolated-tests"))]
|
||||||
fn test_system_keys_keyringstorage() {
|
fn test_system_keys_keyringstorage() {
|
||||||
let username: String = username();
|
let username: String = username();
|
||||||
let storage: KeyringStorage = KeyringStorage::new(username.as_str());
|
let storage: KeyringStorage = KeyringStorage::new(username.as_str());
|
||||||
|
|||||||
Reference in New Issue
Block a user