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.
Этот коммит содержится в:
Ayke van Laethem 2022-02-19 13:11:33 +01:00 коммит произвёл Ron Evans
родитель af8244e868
коммит d75e14245b

Просмотреть файл

@ -1413,8 +1413,8 @@ func main() {
if len(pkgNames) == 0 {
pkgNames = []string{"."}
}
if *testCompileOnlyFlag && len(pkgNames) > 1 {
fmt.Println("cannot use -c flag with multiple packages")
if outpath != "" && len(pkgNames) > 1 {
fmt.Println("cannot use -o flag with multiple packages")
os.Exit(1)
}