mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-07 03:00:29 +00:00
Fix rewind snapshot filtering for short SHAs
This commit is contained in:
parent
892f98022f
commit
c27f72005a
1 changed files with 12 additions and 4 deletions
|
|
@ -407,11 +407,19 @@ pub(crate) fn only_run(context: &TestContext) -> RunSetup {
|
|||
|
||||
pub(crate) fn git_filters(context: &TestContext) -> Vec<(String, String)> {
|
||||
let mut filters = context.filters();
|
||||
filters.push((
|
||||
r"\b[0-9A-HJKMNP-TV-Z]{8}\b".to_string(),
|
||||
"[RUN_PREFIX]".to_string(),
|
||||
));
|
||||
filters.push((r"\b[0-9a-f]{7,40}\b".to_string(), "[SHA]".to_string()));
|
||||
filters.push((
|
||||
r"(fabro resume )[0-9A-HJKMNP-TV-Z]{8}\b".to_string(),
|
||||
"$1[RUN_PREFIX]".to_string(),
|
||||
));
|
||||
filters.push((
|
||||
r"(Forked run )[0-9A-HJKMNP-TV-Z]{8}\b".to_string(),
|
||||
"$1[RUN_PREFIX]".to_string(),
|
||||
));
|
||||
filters.push((
|
||||
r"(-> )[0-9A-HJKMNP-TV-Z]{8}\b".to_string(),
|
||||
"$1[RUN_PREFIX]".to_string(),
|
||||
));
|
||||
filters
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue