internal/rosa/meson: skip specific test suites
Test / Create distribution (push) Successful in 55s
Test / ShareFS (push) Successful in 5m32s
Test / Sandbox (race detector) (push) Successful in 7m9s
Test / Hakurei (race detector) (push) Successful in 8m28s
Test / Sandbox (push) Successful in 1m30s
Test / Hakurei (push) Successful in 2m32s
Test / Flake checks (push) Successful in 1m7s
Test / Create distribution (push) Successful in 55s
Test / ShareFS (push) Successful in 5m32s
Test / Sandbox (race detector) (push) Successful in 7m9s
Test / Hakurei (race detector) (push) Successful in 8m28s
Test / Sandbox (push) Successful in 1m30s
Test / Hakurei (push) Successful in 2m32s
Test / Flake checks (push) Successful in 1m7s
For disabling specific broken or flaky tests. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -18,6 +18,8 @@ type MesonHelper struct {
|
|||||||
|
|
||||||
// Flags passed to the setup command.
|
// Flags passed to the setup command.
|
||||||
Setup []KV
|
Setup []KV
|
||||||
|
// Test suites to skip.
|
||||||
|
SkipTests []string
|
||||||
// Whether to skip meson test.
|
// Whether to skip meson test.
|
||||||
SkipTest bool
|
SkipTest bool
|
||||||
// Run tests with interactive input/output.
|
// Run tests with interactive input/output.
|
||||||
@@ -61,6 +63,9 @@ meson test \
|
|||||||
scriptTest += ` \
|
scriptTest += ` \
|
||||||
--interactive`
|
--interactive`
|
||||||
}
|
}
|
||||||
|
for _, suite := range attr.SkipTests {
|
||||||
|
scriptTest += " \\\n\t--no-suite='" + suite + "'"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return `
|
return `
|
||||||
|
|||||||
@@ -880,6 +880,7 @@ func (s *S) getFrame() azalea.Frame {
|
|||||||
k("postInstall"): &attr.Script,
|
k("postInstall"): &attr.Script,
|
||||||
k("setup"): &attr.Setup,
|
k("setup"): &attr.Setup,
|
||||||
k("skipTest"): &attr.SkipTest,
|
k("skipTest"): &attr.SkipTest,
|
||||||
|
k("skipTests"): &attr.SkipTests,
|
||||||
k("interactiveTest"): &attr.InteractiveTest,
|
k("interactiveTest"): &attr.InteractiveTest,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user