go: Quote targeting expression on runnables (#14055)

Release Notes:

- Go: fix test runnables in fish shell.
This commit is contained in:
Daniel Schmidt 2024-07-10 16:02:29 +02:00 committed by GitHub
parent ba7d5a3d4c
commit e1a6efa609
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -518,7 +518,7 @@ impl ContextProvider for GoContextProvider {
"test".into(),
GO_PACKAGE_TASK_VARIABLE.template_value(),
"-run".into(),
format!("^{}$", VariableName::Symbol.template_value(),),
format!("'^{}$'", VariableName::Symbol.template_value(),),
],
tags: vec!["go-test".to_owned()],
..TaskTemplate::default()
@ -549,7 +549,7 @@ impl ContextProvider for GoContextProvider {
"-v".into(),
"-run".into(),
format!(
"^{}$/^{}$",
"'^{}$/^{}$'",
VariableName::Symbol.template_value(),
GO_SUBTEST_NAME_TASK_VARIABLE.template_value(),
),
@ -570,7 +570,7 @@ impl ContextProvider for GoContextProvider {
"-benchmem".into(),
"-run=^$".into(),
"-bench".into(),
format!("^{}$", VariableName::Symbol.template_value()),
format!("'^{}$'", VariableName::Symbol.template_value()),
],
tags: vec!["go-benchmark".to_owned()],
..TaskTemplate::default()