Skip to content

Add cargo-test job - #67

Merged
bors[bot] merged 7 commits into
rust-cli:masterfrom
matthiasbeyer:ci-test
Sep 12, 2022
Merged

Add cargo-test job#67
bors[bot] merged 7 commits into
rust-cli:masterfrom
matthiasbeyer:ci-test

Conversation

@matthiasbeyer

Copy link
Copy Markdown
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
Copy Markdown
MemberAuthor

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
Copy Markdown
MemberAuthor

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 <mail@beyermatthias.de>
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 <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
@matthiasbeyer
matthiasbeyerforce-pushed the ci-test branch 2 times, most recently from 842e523 to ce9e875CompareSeptember 12, 2022 12:30
Signed-off-by: Gerd Zellweger <mail@gerdzellweger.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
@matthiasbeyer

Copy link
Copy Markdown
MemberAuthor

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

borsBot commented Sep 12, 2022

Copy link
Copy Markdown
Contributor

Build succeeded:

  • CI

@bors
borsBot merged commit 53e5568 into rust-cli:masterSep 12, 2022
@matthiasbeyer
matthiasbeyer deleted the ci-test branch September 12, 2022 12:40
Sign up for freeto 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

@matthiasbeyer@gz