Skip to content

Commit

Permalink
Do not require --enable-test-discovery anymore on Linux (#3579)
Browse files Browse the repository at this point in the history
We have made the flag default a while ago, so we can assume that it'll be passed as default.
  • Loading branch information
neonichu authored Jun 30, 2021
1 parent b95aa03 commit be4822e
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion IntegrationTests/Tests/LinuxMain.swift

This file was deleted.

1 change: 0 additions & 1 deletion Tests/LinuxMain.swift

This file was deleted.

2 changes: 1 addition & 1 deletion Utilities/Docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ services:

test:
<<: *common
command: /bin/bash -cl "swift test --enable-test-discovery --parallel"
command: /bin/bash -cl "swift test --parallel"

bootstrap-clean:
<<: *common
Expand Down
1 change: 0 additions & 1 deletion Utilities/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ def test(args):
note("Testing")
parse_test_args(args)
cmd = [os.path.join(args.bin_dir, "swift-test")]
cmd.append("--enable-test-discovery")
if args.parallel:
cmd.append("--parallel")
for arg in args.filter:
Expand Down
4 changes: 2 additions & 2 deletions Utilities/build-using-self
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ set -x
# Perform package update in order to get the latest commits for the dependencies.
swift package update
swift build -c $CONFIGURATION
swift test -c $CONFIGURATION --parallel --enable-test-discovery
swift test -c $CONFIGURATION --parallel

# Run the integration tests with just built SwiftPM.
export SWIFTPM_BIN_DIR=$(swift build -c $CONFIGURATION --show-bin-path)
cd IntegrationTests
$SWIFTPM_BIN_DIR/swift-test --parallel --enable-test-discovery
$SWIFTPM_BIN_DIR/swift-test --parallel

0 comments on commit be4822e

Please sign in to comment.