Refactored C++ test and added '+' sign as recognized character in auto-test description

pull/900/head
Przemek Wirkus 2015-01-28 09:08:58 +00:00
parent 4d435b94be
commit c6134eb6a2
2 changed files with 7 additions and 3 deletions

View File

@ -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);
}

View File

@ -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: