Skip to content

Commit

Permalink
Revert "Try run spawn instead of test during warmup"
Browse files Browse the repository at this point in the history
This reverts commit 5fd7ecd.
  • Loading branch information
kamilsa committed May 20, 2024
1 parent 5fd7ecd commit 6491515
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions zombienet/docker/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,8 @@ def main():
subprocess.run(f"docker run -d --name {container_name} {image_name} tail -f /dev/null", shell=True, check=True)
print_with_flush(f"Container started with name: {container_name}")

# Split the test_command into a list of words
words = test_command.split()

# Replace 'test' with 'spawn' in the list
words = ['spawn' if word == 'test' else word for word in words]

# Replace '.zndsl' with '.toml' in the last word
words[-1] = words[-1].replace('.zndsl', '.toml')

# Join the list back into a string
first_test_command = ' '.join(words)

print_with_flush(f"Running test: {first_test_command} (warm-up)")
first_attempt = run_test(container_name, first_test_command)
print_with_flush(f"Running test: {test_command} (warm-up)")
first_attempt = run_test(container_name, test_command)

if first_attempt == 0:
print_with_flush("Test passed on the first attempt (warm-up).")
Expand Down

0 comments on commit 6491515

Please sign in to comment.