Skip to content

Commit 2af08fe

Browse files
committed
Fixed travis CI exit status
1 parent 7b0028f commit 2af08fe

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎.travis.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,5 @@ script:
2424
- export FC=/usr/bin/gfortran-5
2525
- export CC=/usr/bin/gcc-5
2626
- cd samples
27-
- cat /proc/cpuinfo
2827
- export OMP_NUM_THREADS=1
29-
- ./magic_wizard.py --use-mpi --nranks 4 --use-openmp --nthreads 1 --level 0 --mpicmd mpirun
28+
- ./magic_wizard.py --use-mpi --nranks 2 --use-openmp --nthreads 1 --level 0 --mpicmd mpirun

‎samples/magic_wizard.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,9 @@ def getSuite(startdir, cmd, precision, args):
381381
print('----------------------')
382382
suite = getSuite(startdir, cmd, precision, args)
383383
runner = unittest.TextTestRunner(verbosity=0)
384-
runner.run(suite)
384+
ret = not runner.run(suite).wasSuccessful()
385385

386386
# Clean build directory
387387
clean_exec_dir(execDir)
388+
389+
sys.exit(ret)

0 commit comments

Comments
 (0)