Description
Running swift test list outputs an error for SwiftPM packages that have an empty LinuxMain.swift
Expected behavior
swift test list to output a list of all the tests in a package
Actual behavior
It outputs
Steps to reproduce
swift package init
touch Tests/LinuxMain.swift
swift test list
Swift Package Manager version/commit hash
No response
Swift & OS version (output of swift --version && uname -a)
Swift version 5.8-dev (LLVM f6b60d5b8f4b443, Swift ecccce61139bbc4)
Target: x86_64-unknown-linux-gnu
Linux af-starbook 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux