Skip to content

Commit 4f117af

Browse files
pass basic tests
Signed-off-by: Tilo Wiklund <tilo.wiklund@sensmetry.com>
1 parent cb74031 commit 4f117af

6 files changed

Lines changed: 586 additions & 27 deletions

File tree

core/scripts/run_tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ PACKAGE_DIR=$(dirname "$SCRIPT_DIR")
88

99
cd "$PACKAGE_DIR"
1010

11-
cargo test --features filesystem,networking,alltests
12-
cargo test --features js
13-
cargo test --features python
11+
cargo test --features filesystem,networking,alltests $@
12+
cargo test --features js $@
13+
cargo test --features python $@

sysand/scripts/run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ PACKAGE_DIR=$(dirname "$SCRIPT_DIR")
88

99
cd "$PACKAGE_DIR"
1010

11-
cargo test --features alltests
11+
cargo test --features alltests $@

sysand/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ pub fn run_cli(args: cli::Args) -> Result<()> {
111111

112112
for (key, value) in std::env::vars() {
113113
if let Some(key_rest) = key.strip_prefix("SYSAND_CRED_") {
114-
if let Some(key_name) = key.strip_suffix("_BASIC_USER") {
114+
if let Some(key_name) = key_rest.strip_suffix("_BASIC_USER") {
115115
basic_auth_users.insert(key_name.to_owned(), value);
116-
} else if let Some(key_name) = key.strip_suffix("_BASIC_PASS") {
116+
} else if let Some(key_name) = key_rest.strip_suffix("_BASIC_PASS") {
117117
basic_auth_passwords.insert(key_name.to_owned(), value);
118118
} else {
119119
basic_auth_patterns.insert(key_rest.to_owned(), value);

0 commit comments

Comments
 (0)