Fix handling of test bundles with .wasm extension (#153)

After https://github.com/apple/swift-package-manager/pull/3013 was merged and cherry-picked for our 5.3 snapshots (starting with `wasm-5.3-SNAPSHOT-2020-11-02-a`), `carton test` needs to handle the `.wasm` extension in test products.
This commit is contained in:
Max Desiatov 2020-11-05 21:34:59 +00:00 committed by GitHub
parent 92d49f92d0
commit ac97210433
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -12,4 +12,4 @@
// See the License for the specific language governing permissions and
// limitations under the License.
public let defaultToolchainVersion = "wasm-5.3-SNAPSHOT-2020-10-29-c"
public let defaultToolchainVersion = "wasm-5.3-SNAPSHOT-2020-11-02-a"

View File

@ -245,7 +245,7 @@ public final class Toolchain {
let package = try self.package.get()
let binPath = try inferBinPath(isRelease: isRelease)
let testProductName = "\(package.name)PackageTests"
let testBundlePath = binPath.appending(component: "\(testProductName).xctest")
let testBundlePath = binPath.appending(component: "\(testProductName).wasm")
terminal.logLookup("- test bundle to run: ", testBundlePath.pathString)
terminal.write(