Skip to content

Commit e151537

Browse files
authored
[nrfconnect] Fail ctest when it finds no tests (project-chip#37925)
Add `--no-tests=error` to `ctest` arguments to make it return error when it finds no tests. Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no>
1 parent 0bae36f commit e151537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build/builders/nrf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def _build(self):
220220
# Note: running zephyr/zephyr.elf has the same result except it creates
221221
# a flash.bin in the current directory. ctest has more options and does not
222222
# pollute the source directory
223-
self._Execute(['ctest', '--build-nocmake', '-V', '--output-on-failure', '--test-dir', os.path.join(self.output_dir, 'nrfconnect')],
223+
self._Execute(['ctest', '--build-nocmake', '-V', '--output-on-failure', '--test-dir', os.path.join(self.output_dir, 'nrfconnect'), '--no-tests=error'],
224224
title='Run Tests ' + self.identifier)
225225

226226
def _bundle(self):

0 commit comments

Comments
 (0)