mirror of https://github.com/ARMmbed/mbed-os.git
Refactored C++ test and added '+' sign as recognized character in auto-test description
parent
4d435b94be
commit
c6134eb6a2
|
|
@ -54,6 +54,11 @@ Heap::hello
|
|||
Heap::destroy
|
||||
*******************/
|
||||
int main (void) {
|
||||
TEST_TIMEOUT(10);
|
||||
TEST_HOSTTEST(default_auto);
|
||||
TEST_DESCRIPTION(C++);
|
||||
TEST_START("MBED_12");
|
||||
|
||||
bool result = true;
|
||||
for (;;)
|
||||
{
|
||||
|
|
@ -77,6 +82,5 @@ int main (void) {
|
|||
break;
|
||||
}
|
||||
|
||||
notify_completion(result);
|
||||
return 0;
|
||||
TEST_RESULT(result);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -283,7 +283,7 @@ class Test(HostTestResults):
|
|||
self.notify("HOST: Start test...")
|
||||
break
|
||||
else:
|
||||
m = re.search('{([\w_]+);([\w\d ]+)}}', line[:-1])
|
||||
m = re.search('{([\w_]+);([\w\d\+ ]+)}}', line[:-1])
|
||||
if m and len(m.groups()) == 2:
|
||||
result[m.group(1)] = m.group(2)
|
||||
if verbose:
|
||||
|
|
|
|||
Loading…
Reference in New Issue