diff --git a/tests/driver_bme680/main.c b/tests/driver_bme680/main.c index d80ba3dfa7c4..cd3d53828598 100644 --- a/tests/driver_bme680/main.c +++ b/tests/driver_bme680/main.c @@ -55,6 +55,7 @@ int main(void) printf("Initialize BME680 sensor %u ... ", i); if (bme680_init(&dev[i], &bme680_params[i]) != BME680_OK) { puts("failed"); + return -1; } else { puts("OK"); diff --git a/tests/driver_bme680/tests/01-run.py b/tests/driver_bme680/tests/01-run.py index 9e883f785f3f..213640011f53 100755 --- a/tests/driver_bme680/tests/01-run.py +++ b/tests/driver_bme680/tests/01-run.py @@ -16,13 +16,12 @@ def testfunc(child): if i == 1: print('FAILED') return - child.expect('\[bme680\]: dev=0, ') - child.expect(r'T = \d+.\d+ degC, ') - child.expect(r'P = \d+ Pa, ') - child.expect(r'H = \d+.\d+ \%, ') - child.expect(r'G = \d+ ohms') + child.expect(r'\[bme680\]: dev=0, ' + r'T = \d+.\d+ degC, ' + r'P = \d+ Pa, ' + r'H = \d+.\d+ \%, ' + r'G = \d+ ohms\r\n') print('SUCCESS') - return if __name__ == "__main__":