Skip to content

Commit

Permalink
scripts/test.py: Fix infinite busy loops on macOS
Browse files Browse the repository at this point in the history
I confirmed that the same number of tests are run
with "make test" on:

    * Ubuntu with and without this change
    * macOS with this change

>   ====== results ======
>   tests passed 817/817 (100.00%)
>   tests failed 0/817 (0.00%)
  • Loading branch information
yamt committed Feb 22, 2021
1 parent 1863dc7 commit 3bee4d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ def test(self, exec=[], persist=False, cycles=None,
if e.errno == errno.EIO:
break
raise
if not line:
break;
stdout.append(line)
if args.get('verbose'):
sys.stdout.write(line)
Expand Down Expand Up @@ -687,6 +689,8 @@ def main(**args):
if e.errno == errno.EIO:
break
raise
if not line:
break;
stdout.append(line)
if args.get('verbose'):
sys.stdout.write(line)
Expand Down

0 comments on commit 3bee4d9

Please sign in to comment.