Skip to content

Commit 78c79ec

Browse files
committed
Added QUIET flag to tests so CI is readable
1 parent f9f4f5c commit 78c79ec

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ script:
99
-include stdio.h -Werror' make all size
1010

1111
# run tests
12-
- make test
12+
- make test QUIET=1
1313

1414
# run tests with a few different configurations
15-
- CFLAGS="-DLFS_READ_SIZE=1 -DLFS_PROG_SIZE=1" make test
16-
- CFLAGS="-DLFS_READ_SIZE=512 -DLFS_PROG_SIZE=512" make test
17-
- CFLAGS="-DLFS_BLOCK_COUNT=1023" make test
18-
- CFLAGS="-DLFS_LOOKAHEAD=2048" make test
15+
- CFLAGS="-DLFS_READ_SIZE=1 -DLFS_PROG_SIZE=1" make test QUIET=1
16+
- CFLAGS="-DLFS_READ_SIZE=512 -DLFS_PROG_SIZE=512" make test QUIET=1
17+
- CFLAGS="-DLFS_BLOCK_COUNT=1023" make test QUIET=1
18+
- CFLAGS="-DLFS_LOOKAHEAD=2048" make test QUIET=1
1919

2020
# self-host with littlefs-fuse for fuzz test
2121
- make -C littlefs-fuse
@@ -28,7 +28,7 @@ script:
2828
- cp -r $(git ls-tree --name-only HEAD) mount/littlefs
2929
- cd mount/littlefs
3030
- ls
31-
- make -B test_dirs
31+
- make -B test_dirs QUIET=1
3232

3333
before_install:
3434
- fusermount -V

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ size: $(OBJ)
3434
test: test_format test_dirs test_files test_seek test_parallel \
3535
test_alloc test_paths test_orphan test_move test_corrupt
3636
test_%: tests/test_%.sh
37+
ifdef QUIET
38+
./$< | sed '/^[^-=]/d'
39+
else
3740
./$<
41+
endif
3842

3943
-include $(DEP)
4044

0 commit comments

Comments
 (0)