Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Sep 17, 2024
1 parent 2b36734 commit 34e375a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions devenv/src/devenv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -552,15 +552,9 @@ impl<'a> Devenv<'a> {
// collect tests
let test_script = {
let _logprogress = self.log_progress.with_newline("Building tests");
let test_scripts = self.nix.build(&["devenv.test"]).await?;
std::fs::read_to_string(&test_scripts[0])
.map_err(|e| miette::miette!("Failed to read test script: {}", e))?
self.nix.build(&["devenv.test"]).await?
};

if test_script.is_empty() {
self.logger.error("No tests found.");
bail!("No tests found");
}
let test_script = test_script[0].to_string_lossy().to_string();

if self.has_processes().await? {
self.up(None, &true, &false).await?;
Expand Down

0 comments on commit 34e375a

Please sign in to comment.