Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Haster <chaster@utexas.edu>2021-06-12 20:35:25 +0300
committerGitHub <noreply@github.com>2021-06-12 20:35:25 +0300
commit2f7596811d367b139308640d07ba0bad6338f969 (patch)
treeed7f5ceccdad888d882741e291b9220bc276916f
parent3d4e4f2085493f28247fc1397dac09c72d2f2230 (diff)
parent3bee4d9a19a216d63a689f7833a2d4e155baccaf (diff)
Merge pull request #529 from yamt/macos-make-test
scripts/test.py: Fix infinite busy loops on macOS
-rwxr-xr-xscripts/test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/test.py b/scripts/test.py
index 4e205f7..42a10f9 100755
--- a/scripts/test.py
+++ b/scripts/test.py
@@ -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)