From 3bee4d9a19a216d63a689f7833a2d4e155baccaf Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 22 Feb 2021 14:38:48 +0900 Subject: [PATCH 1/2] 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%) --- scripts/test.py | 4 ++++ 1 file changed, 4 insertions(+) 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) From 1e423bae5817ad752bed0487edad0dc233f80561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Wed, 9 Jun 2021 21:04:50 +0200 Subject: [PATCH 2/2] Fix link to test block device --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a30d43d..584ada3 100644 --- a/README.md +++ b/README.md @@ -192,7 +192,7 @@ More details on how littlefs works can be found in [DESIGN.md](DESIGN.md) and ## Testing The littlefs comes with a test suite designed to run on a PC using the -[emulated block device](emubd/lfs_emubd.h) found in the emubd directory. +[emulated block device](bd/lfs_testbd.h) found in the `bd` directory. The tests assume a Linux environment and can be started with make: ``` bash