Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

matthiasbeyer
Copy link
Member

Adds a cargo-test job to CI.


DAMN. I forgot to add the cargo-test job in the initial CI. Lets see how I can make this crate run through tests...

@matthiasbeyer
Copy link
Member Author

So that's what I have so far. The session-timeout tests are especially concerning, as I do not even see what the actual issue is.
If someone wants to help, feel free!

@matthiasbeyer
Copy link
Member Author

Funny enough: Locally, three tests fail:

test session::tests::test_expect_eof_timeout2 ... FAILED
test session::tests::test_bash ... FAILED
test session::tests::test_bash_control_chars ... FAILED

In CI, only one does. Strange!

Signed-off-by: Matthias Beyer <[email protected]>
If we emit a ReadUntil::NBytes, but the `eof` flag is already set and
the buffer is indeed _not_ empty, we return Some() here. If the buffer
is empty, there's nothing to return, so we return None.

This fixes the following tests:

* reader::tests::test_any_with_multiple_possible_matches
* reader::tests::test_any_with_same_start_different_length
* reader::tests::test_eof
* reader::tests::test_expect_melon
* reader::tests::test_nbytes
* reader::tests::test_regex
* reader::tests::test_regex2

Signed-off-by: Matthias Beyer <[email protected]>
@matthiasbeyer matthiasbeyer force-pushed the ci-test branch 2 times, most recently from 842e523 to ce9e875 Compare September 12, 2022 12:30
Signed-off-by: Gerd Zellweger <[email protected]>
Signed-off-by: Matthias Beyer <[email protected]>
@matthiasbeyer
Copy link
Member Author

Okay, so now it seems everything to work. 177c66d was a complete lucky-shot. This means that this PR now supersedes #40.

I guess we can

bors merge

@bors
Copy link
Contributor

bors bot commented Sep 12, 2022

Build succeeded:

  • CI

@bors bors bot merged commit 53e5568 into rust-cli:master Sep 12, 2022
@matthiasbeyer matthiasbeyer deleted the ci-test branch September 12, 2022 12:40
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

Successfully merging this pull request may close these issues.

2 participants