Skip to content

Commit

Permalink
fix: tracker checker execution in CI
Browse files Browse the repository at this point in the history
It was extractted in toa new package.
  • Loading branch information
josecelano committed Nov 1, 2024
1 parent a5822cd commit e01995c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/console/ci/e2e/tracker_checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ use std::process::Command;
///
/// Will return an error if the Tracker Checker fails.
pub fn run(config_content: &str) -> io::Result<()> {
tracing::info!("Running Tracker Checker: TORRUST_CHECKER_CONFIG=[config] cargo run --bin tracker_checker");
tracing::info!(

Check warning on line 10 in src/console/ci/e2e/tracker_checker.rs

View check run for this annotation

Codecov / codecov/patch

src/console/ci/e2e/tracker_checker.rs#L10

Added line #L10 was not covered by tests
"Running Tracker Checker: TORRUST_CHECKER_CONFIG=[config] cargo run -p bittorrent-tracker-client --bin tracker_checker"
);
tracing::info!("Tracker Checker config:\n{config_content}");

let status = Command::new("cargo")
.env("TORRUST_CHECKER_CONFIG", config_content)
.args(["run", "--bin", "tracker_checker"])
.args(["run", "-p", "bittorrent-tracker-client", "--bin", "tracker_checker"])

Check warning on line 17 in src/console/ci/e2e/tracker_checker.rs

View check run for this annotation

Codecov / codecov/patch

src/console/ci/e2e/tracker_checker.rs#L17

Added line #L17 was not covered by tests
.status()?;

if status.success() {
Expand Down

0 comments on commit e01995c

Please sign in to comment.