Skip to content

Commit

Permalink
apt_get_update
Browse files Browse the repository at this point in the history
  • Loading branch information
epompeii committed Jun 22, 2024
1 parent da23521 commit c7d2ea7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasks/test_api/src/task/test/examples.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,17 @@ impl Example {
},
Self::RustCriterion | Self::RustCustom => Ok(()),
Self::RustIai => {
let status = Command::new("sudo").args(["apt-get", "update"]).status()?;
assert!(status.success(), "{status}");
let status = Command::new("sudo")
.args(["apt", "install", "valgrind", "-y"])
.status()?;
assert!(status.success(), "{status}");
Ok(())
},
Self::RustIaiCallgrind => {
let status = Command::new("sudo").args(["apt-get", "update"]).status()?;
assert!(status.success(), "{status}");
let status = Command::new("sudo")
.args(["apt", "install", "valgrind", "-y"])
.status()?;
Expand Down

0 comments on commit c7d2ea7

Please sign in to comment.