internal/rosa/python: respect toolchain opts
Test / Create distribution (push) Successful in 1m2s
Test / Sandbox (push) Successful in 3m17s
Test / ShareFS (push) Successful in 4m34s
Test / Hakurei (push) Successful in 4m45s
Test / Sandbox (race detector) (push) Successful in 6m9s
Test / Hakurei (race detector) (push) Successful in 7m7s
Test / Flake checks (push) Successful in 1m16s
Test / Create distribution (push) Successful in 1m2s
Test / Sandbox (push) Successful in 3m17s
Test / ShareFS (push) Successful in 4m34s
Test / Hakurei (push) Successful in 4m45s
Test / Sandbox (race detector) (push) Successful in 6m9s
Test / Hakurei (race detector) (push) Successful in 7m7s
Test / Flake checks (push) Successful in 1m16s
This was missed when migrating the pip helper. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -46,7 +46,7 @@ func (*PipHelper) scriptEarly() string { return "" }
|
||||
func (*PipHelper) wantsDir() (string, bool) { return `"$(mktemp -d)"`, false }
|
||||
|
||||
// script generates the pip3 install command.
|
||||
func (attr *PipHelper) script(_ Toolchain, name string) string {
|
||||
func (attr *PipHelper) script(t Toolchain, name string) string {
|
||||
if attr == nil {
|
||||
attr = new(PipHelper)
|
||||
}
|
||||
@@ -70,7 +70,7 @@ func (attr *PipHelper) script(_ Toolchain, name string) string {
|
||||
if attr.EnterSource {
|
||||
script += "cd '/usr/src/" + name + "'\n"
|
||||
}
|
||||
if !attr.SkipCheck {
|
||||
if !attr.SkipCheck && t.opts&OptSkipCheck == 0 {
|
||||
if attr.Check == "" {
|
||||
// some test suites fall apart when ran out-of-tree
|
||||
script += "(cd '" + sourcePath.String() + "' && pytest)\n"
|
||||
|
||||
Reference in New Issue
Block a user