Jelajahi Sumber

Merge pull request #9 from mysterywolf/upstream-3

同步上游
geniusgogo 3 tahun lalu
induk
melakukan
7b8a5dd6e2
2 mengubah file dengan 6 tambahan dan 2 penghapusan
  1. 2 2
      README.md
  2. 4 0
      scripts/test.py

+ 2 - 2
README.md

@@ -1,4 +1,4 @@
-## littlefs
+## littlefs for RT-Thread
 
 A little fail-safe filesystem designed for microcontrollers.
 
@@ -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

+ 4 - 0
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)