scripts/test.py: Fix infinite busy loops on macOS

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%)
This commit is contained in:
YAMAMOTO Takashi 2021-02-22 14:38:48 +09:00
parent 1863dc7883
commit 3bee4d9a19
1 changed files with 4 additions and 0 deletions

View File

@ -292,6 +292,8 @@ class TestCase:
if e.errno == errno.EIO:
break
raise
if not line:
break;
stdout.append(line)
if args.get('verbose'):
sys.stdout.write(line)
@ -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)