mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-07 20:55:32 +02:00
Fix Bazel sharding test that relied on tests being run in declaration order
This commit is contained in:
parent
dba0b3fa82
commit
71a3db4815
@ -46,10 +46,15 @@ env["TEST_SHARD_INDEX"] = "0"
|
|||||||
env["TEST_TOTAL_SHARDS"] = "2"
|
env["TEST_TOTAL_SHARDS"] = "2"
|
||||||
env["TEST_SHARD_STATUS_FILE"] = info_file_path
|
env["TEST_SHARD_STATUS_FILE"] = info_file_path
|
||||||
|
|
||||||
|
cmd = [
|
||||||
|
bin_path,
|
||||||
|
# We rely on the test order being deterministic
|
||||||
|
'--order', 'decl'
|
||||||
|
]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
ret = subprocess.run(
|
ret = subprocess.run(
|
||||||
bin_path,
|
cmd,
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.PIPE,
|
stderr=subprocess.PIPE,
|
||||||
check=True,
|
check=True,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user