Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make test_suites.sh run multiple iterations of the tests. #7433

Merged
merged 1 commit into from
Jun 8, 2021

Conversation

bzbarsky-apple
Copy link
Contributor

The default is to run 20 times (which takes ~3 seconds on a Mac
laptop), but it's configurable via the first command-line arg.

The changes to the actual loop body over test_array are:

  1. Removing all the sleeps.
  2. Making it less likely that we will kill some unrelated process (due to us
    killing $background_pid and then exiting with an error from the kill
    command and trying to kill it again).

Problem

Intermittent failures are only caught by some test runs.

Change overview

Have each test run run the tests 20 of times, making it more likely to catch intermittent problems.

Testing

Ran the script locally to make sure that the new setup does not fail. Verified via the log that the tests did indeed get run 20 times.

The default is to run 20 times (which takes ~3 seconds on a Mac
laptop), but it's configurable via the first command-line arg.

The changes to the actual loop body over test_array are:

1. Removing all the sleeps.
2. Making it less likely that we will kill some unrelated process (due to us
   killing $background_pid and then exiting with an error from the kill
   command and trying to kill it again).
@woody-apple
Copy link
Contributor

@andy31415 andy31415 merged commit b66c69d into project-chip:master Jun 8, 2021
@bzbarsky-apple bzbarsky-apple deleted the improve-test-script branch June 8, 2021 18:13
nikita-s-wrk pushed a commit to nikita-s-wrk/connectedhomeip that referenced this pull request Sep 23, 2021
…ip#7433)

The default is to run 20 times (which takes ~3 seconds on a Mac
laptop), but it's configurable via the first command-line arg.

The changes to the actual loop body over test_array are:

1. Removing all the sleeps.
2. Making it less likely that we will kill some unrelated process (due to us
   killing $background_pid and then exiting with an error from the kill
   command and trying to kill it again).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants