skip access_all test

This commit is contained in:
damirka 2021-08-19 20:10:15 +03:00
parent 060513bffa
commit cddc0d62b1
2 changed files with 12 additions and 2 deletions

View File

@ -30,7 +30,7 @@ jobs:
- name: Generate asts - name: Generate asts
run: | run: |
cargo -q run -p leo-test-framework --bin tgc cargo -q run -p leo-test-framework --bin tgc -- --skip access_all
# Pull the latest release from the leo-acl2-bin repo, and put it into the # Pull the latest release from the leo-acl2-bin repo, and put it into the
# repo/acl2 directory. After it's done, unpack the tgz file locally. # repo/acl2 directory. After it's done, unpack the tgz file locally.

View File

@ -36,8 +36,11 @@ struct Opt {
)] )]
path: PathBuf, path: PathBuf,
#[structopt(short, long, help = "Filter test names and run only matching")] #[structopt(short, long, help = "Run only for test that match pattern")]
filter: Option<String>, filter: Option<String>,
#[structopt(short, long, help = "Skip tests matching pattern")]
skip: Option<String>,
} }
fn main() { fn main() {
@ -76,6 +79,13 @@ fn run_with_args(opt: Opt) -> Result<(), Box<dyn Error>> {
} }
} }
// If skip flag is used, don't run tests matching the pattern.
if let Some(skip_name) = &opt.skip {
if test_name.contains(skip_name) {
continue;
}
}
test_name.push_str(&format!("_{}", index)); test_name.push_str(&format!("_{}", index));
// Create directory for this file. // Create directory for this file.