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:
parent
92d49f92d0
commit
ac97210433
|
@ -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"
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue