mirror of
https://github.com/eledio-devices/thirdparty-littlefs.git
synced 2025-11-02 08:48:29 +01:00
Compare commits
1 Commits
fix-sanity
...
script-fix
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2cd895dbba |
12
lfs.c
12
lfs.c
@@ -3616,16 +3616,16 @@ static int lfs_rawformat(lfs_t *lfs, const struct lfs_config *cfg) {
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
// force compaction to prevent accidentally mounting any
|
// sanity check that fetch works
|
||||||
// older version of littlefs that may live on disk
|
err = lfs_dir_fetch(lfs, &root, (const lfs_block_t[2]){0, 1});
|
||||||
root.erased = false;
|
|
||||||
err = lfs_dir_commit(lfs, &root, NULL, 0);
|
|
||||||
if (err) {
|
if (err) {
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
// sanity check that fetch works
|
// force compaction to prevent accidentally mounting any
|
||||||
err = lfs_dir_fetch(lfs, &root, (const lfs_block_t[2]){0, 1});
|
// older version of littlefs that may live on disk
|
||||||
|
root.erased = false;
|
||||||
|
err = lfs_dir_commit(lfs, &root, NULL, 0);
|
||||||
if (err) {
|
if (err) {
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -746,9 +746,9 @@ if __name__ == "__main__":
|
|||||||
parser.add_argument('testpaths', nargs='*', default=[TESTDIR],
|
parser.add_argument('testpaths', nargs='*', default=[TESTDIR],
|
||||||
help="Description of test(s) to run. By default, this is all tests \
|
help="Description of test(s) to run. By default, this is all tests \
|
||||||
found in the \"{0}\" directory. Here, you can specify a different \
|
found in the \"{0}\" directory. Here, you can specify a different \
|
||||||
directory of tests, a specific file, a suite by name, and even a \
|
directory of tests, a specific file, a suite by name, and even \
|
||||||
specific test case by adding brackets. For example \
|
specific test cases and permutations. For example \
|
||||||
\"test_dirs[0]\" or \"{0}/test_dirs.toml[0]\".".format(TESTDIR))
|
\"test_dirs#1\" or \"{0}/test_dirs.toml#1#1\".".format(TESTDIR))
|
||||||
parser.add_argument('-D', action='append', default=[],
|
parser.add_argument('-D', action='append', default=[],
|
||||||
help="Overriding parameter definitions.")
|
help="Overriding parameter definitions.")
|
||||||
parser.add_argument('-v', '--verbose', action='store_true',
|
parser.add_argument('-v', '--verbose', action='store_true',
|
||||||
|
|||||||
Reference in New Issue
Block a user