Skip to content

Commit 2cf4715

Browse files
committed
littlefs: Increased test timeout to 4 minutes
Unfortunately there are several issues colluding to force the timeout this high. 1. The tests push littlefs to the limits of how many errors it can handle before failing. As a side effect this causes a massive amount of debug/warn/error logging about the situation. 2. The logging can't be turned off for specific tests. Note: This might change with the introduction of test-configs. 3. Logging is fixed to a baud rate of 9600. Previous testing was carried out with a baud rate of 115200, which is the reason for the original timeout.
1 parent ea0fee0 commit 2cf4715

File tree

11 files changed

+23
-11
lines changed

11 files changed

+23
-11
lines changed

features/filesystem/littlefs/TESTS/filesystem/dirs/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ using namespace utest::v1;
5252
#endif
5353

5454
#ifndef MBED_TEST_TIMEOUT
55-
#define MBED_TEST_TIMEOUT 120
55+
#define MBED_TEST_TIMEOUT 480
5656
#endif
5757

5858

features/filesystem/littlefs/TESTS/filesystem/files/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ using namespace utest::v1;
5252
#endif
5353

5454
#ifndef MBED_TEST_TIMEOUT
55-
#define MBED_TEST_TIMEOUT 120
55+
#define MBED_TEST_TIMEOUT 480
5656
#endif
5757

5858

features/filesystem/littlefs/TESTS/filesystem/interspersed/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ using namespace utest::v1;
5252
#endif
5353

5454
#ifndef MBED_TEST_TIMEOUT
55-
#define MBED_TEST_TIMEOUT 120
55+
#define MBED_TEST_TIMEOUT 480
5656
#endif
5757

5858

features/filesystem/littlefs/TESTS/filesystem/seek/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ using namespace utest::v1;
5252
#endif
5353

5454
#ifndef MBED_TEST_TIMEOUT
55-
#define MBED_TEST_TIMEOUT 120
55+
#define MBED_TEST_TIMEOUT 480
5656
#endif
5757

5858

features/filesystem/littlefs/TESTS/filesystem_recovery/resilience/main.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ using namespace utest::v1;
4141
#define MBED_TEST_CYCLES 10
4242
#endif
4343

44+
#ifndef MBED_TEST_TIMEOUT
45+
#define MBED_TEST_TIMEOUT 480
46+
#endif
47+
4448
// declarations
4549
#define STRINGIZE(x) STRINGIZE2(x)
4650
#define STRINGIZE2(x) #x
@@ -89,7 +93,7 @@ Case cases[] = {
8993

9094
utest::v1::status_t greentea_test_setup(const size_t number_of_cases)
9195
{
92-
GREENTEA_SETUP(120, "default_auto");
96+
GREENTEA_SETUP(MBED_TEST_TIMEOUT, "default_auto");
9397
return greentea_test_setup_handler(number_of_cases);
9498
}
9599

features/filesystem/littlefs/TESTS/filesystem_recovery/resilience_functional/main.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ using namespace utest::v1;
4444
#define MBED_TEST_CYCLES 10
4545
#endif
4646

47+
#ifndef MBED_TEST_TIMEOUT
48+
#define MBED_TEST_TIMEOUT 480
49+
#endif
50+
4751
// declarations
4852
#define STRINGIZE(x) STRINGIZE2(x)
4953
#define STRINGIZE2(x) #x
@@ -95,7 +99,7 @@ static cmd_status_t handle_command(const char *key, const char *value)
9599

96100
int main()
97101
{
98-
GREENTEA_SETUP(120, "unexpected_reset");
102+
GREENTEA_SETUP(MBED_TEST_TIMEOUT, "unexpected_reset");
99103

100104
static char _key[10 + 1] = {};
101105
static char _value[128 + 1] = {};

features/filesystem/littlefs/TESTS/filesystem_recovery/wear_leveling/main.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ using namespace utest::v1;
4242
#define MBED_TEST_ERASE_CYCLES 100
4343
#endif
4444

45+
#ifndef MBED_TEST_TIMEOUT
46+
#define MBED_TEST_TIMEOUT 480
47+
#endif
48+
4549
// declarations
4650
#define STRINGIZE(x) STRINGIZE2(x)
4751
#define STRINGIZE2(x) #x
@@ -105,7 +109,7 @@ Case cases[] = {
105109

106110
utest::v1::status_t greentea_test_setup(const size_t number_of_cases)
107111
{
108-
GREENTEA_SETUP(120, "default_auto");
112+
GREENTEA_SETUP(MBED_TEST_TIMEOUT, "default_auto");
109113
return greentea_test_setup_handler(number_of_cases);
110114
}
111115

features/filesystem/littlefs/TESTS/filesystem_retarget/dirs/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ using namespace utest::v1;
5252
#endif
5353

5454
#ifndef MBED_TEST_TIMEOUT
55-
#define MBED_TEST_TIMEOUT 120
55+
#define MBED_TEST_TIMEOUT 480
5656
#endif
5757

5858

features/filesystem/littlefs/TESTS/filesystem_retarget/files/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ using namespace utest::v1;
5252
#endif
5353

5454
#ifndef MBED_TEST_TIMEOUT
55-
#define MBED_TEST_TIMEOUT 120
55+
#define MBED_TEST_TIMEOUT 480
5656
#endif
5757

5858

features/filesystem/littlefs/TESTS/filesystem_retarget/interspersed/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ using namespace utest::v1;
5252
#endif
5353

5454
#ifndef MBED_TEST_TIMEOUT
55-
#define MBED_TEST_TIMEOUT 120
55+
#define MBED_TEST_TIMEOUT 480
5656
#endif
5757

5858

0 commit comments

Comments
 (0)