-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(zk_toolbox): Add zk_supervisor test l1 contracts command (#2613)
## What ❔ Add zk_supervisor test l1 contracts command
- Loading branch information
1 parent
5c8794b
commit 931e452
Showing
3 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
zk_toolbox/crates/zk_supervisor/src/commands/test/l1_contracts.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
use common::{cmd::Cmd, logger}; | ||
use config::EcosystemConfig; | ||
use xshell::{cmd, Shell}; | ||
|
||
use crate::messages::MSG_L1_CONTRACTS_TEST_SUCCESS; | ||
|
||
pub fn run(shell: &Shell) -> anyhow::Result<()> { | ||
let ecosystem = EcosystemConfig::from_file(shell)?; | ||
let _dir_guard = shell.push_dir(&ecosystem.link_to_code); | ||
|
||
Cmd::new(cmd!(shell, "yarn l1-contracts test")) | ||
.with_force_run() | ||
.run()?; | ||
|
||
logger::outro(MSG_L1_CONTRACTS_TEST_SUCCESS); | ||
|
||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters