Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests are failing #6

Open
rgreinho opened this issue Dec 26, 2020 · 3 comments
Open

Tests are failing #6

rgreinho opened this issue Dec 26, 2020 · 3 comments

Comments

@rgreinho
Copy link
Contributor

rgreinho commented Dec 26, 2020

Tests for the master branch (875accd) are failing with the following error:

test test::expressions::script_key_filter_1 ... FAILED

failures:

---- test::expressions::script_key_filter_1 stdout ----
thread 'test::expressions::script_key_filter_1' panicked at 'assertion failed: `(left == right)`
  left: `String("-n test\n")`,
 right: `String("test")`: script_key_filter_1 expression ' script('echo -n test') | key('stdout') ' result -> String("-n test\n")', src/test/expressions.rs:48:1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    test::expressions::script_key_filter_1

test result: FAILED. 43 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out

Versions:

$ rustc --version
rustc 1.45.2 (d3fb005a3 2020-07-31)
$ cargo --version
cargo 1.45.1 (f242df6ed 2020-07-22)
@rgreinho
Copy link
Contributor Author

Same thing after an update:

$ rustc --version
rustc 1.48.0 (7eac88abb 2020-11-16)
$ cargo --version
cargo 1.48.0 (65cbdd2dc 2020-10-14)

@philproctor
Copy link
Collaborator

I'm not able to replicate this, the test referred to here is for the expression script('echo -n test') | key('stdout'). I suspect this isn't rust, but a difference in shell versions. What shell/OS are you using?

@rgreinho
Copy link
Contributor Author

I am using bash 5 on OSX.

$ bash --version
GNU bash, version 5.1.4(1)-release (x86_64-apple-darwin19.6.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants