forked from rosa/hakurei
internal/rosa/python: respect toolchain opts
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 }
|
func (*PipHelper) wantsDir() (string, bool) { return `"$(mktemp -d)"`, false }
|
||||||
|
|
||||||
// script generates the pip3 install command.
|
// 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 {
|
if attr == nil {
|
||||||
attr = new(PipHelper)
|
attr = new(PipHelper)
|
||||||
}
|
}
|
||||||
@@ -70,7 +70,7 @@ func (attr *PipHelper) script(_ Toolchain, name string) string {
|
|||||||
if attr.EnterSource {
|
if attr.EnterSource {
|
||||||
script += "cd '/usr/src/" + name + "'\n"
|
script += "cd '/usr/src/" + name + "'\n"
|
||||||
}
|
}
|
||||||
if !attr.SkipCheck {
|
if !attr.SkipCheck && t.opts&OptSkipCheck == 0 {
|
||||||
if attr.Check == "" {
|
if attr.Check == "" {
|
||||||
// some test suites fall apart when ran out-of-tree
|
// some test suites fall apart when ran out-of-tree
|
||||||
script += "(cd '" + sourcePath.String() + "' && pytest)\n"
|
script += "(cd '" + sourcePath.String() + "' && pytest)\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user