mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-21 12:59:04 +00:00
test: fix assertion for multiple packages
I see no reason why it isn't possible to run `tinygo test -c` with multiple packages. It'll just create multiple test outputs. I think the intended flag was the `-o` flag, which indeed doesn't make much sense with multiple packages.
This commit is contained in:
committed by
Ron Evans
parent
af8244e868
commit
d75e14245b
@@ -1413,8 +1413,8 @@ func main() {
|
|||||||
if len(pkgNames) == 0 {
|
if len(pkgNames) == 0 {
|
||||||
pkgNames = []string{"."}
|
pkgNames = []string{"."}
|
||||||
}
|
}
|
||||||
if *testCompileOnlyFlag && len(pkgNames) > 1 {
|
if outpath != "" && len(pkgNames) > 1 {
|
||||||
fmt.Println("cannot use -c flag with multiple packages")
|
fmt.Println("cannot use -o flag with multiple packages")
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user