Skip to content

Commit 4f30a60

Browse files
committed
debugging..
1 parent c0dcdca commit 4f30a60

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ install:
2727
script:
2828
- "./docs/update_apidocs.sh"
2929
- which nosetests
30-
- nosetests -v --with-coverage --cover-erase --cover-inclusive --cover-package=pySDC/core,pySDC/implementations,pySDC/helpers,pySDC/tutorial,pySDC/projects --cover-html --cover-html-dir=doc/build/test_coverage pySDC/tests
30+
- nosetests -s -v pySDC/tests/test_tutorials/test_step_7.py
31+
# - nosetests -v --with-coverage --cover-erase --cover-inclusive --cover-package=pySDC/core,pySDC/implementations,pySDC/helpers,pySDC/tutorial,pySDC/projects --cover-html --cover-html-dir=doc/build/test_coverage pySDC/tests
3132
- if [[ $PYTHON_VERSION == 3 ]]; then travis-sphinx build; fi
3233

3334
after_success:

pySDC/tests/test_tutorials/test_step_7.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import subprocess
22
import os
3-
43
from pySDC.tutorial.step_7.A_visualize_residuals import main as main_A
54
from pySDC.tutorial.step_7.B_multistep_SDC import main as main_B
65

@@ -20,6 +19,8 @@ def test_C_1x1():
2019
cmd = ('mpirun -np ' + str(num_procs) + ' python pySDC/tutorial/step_7/C_pySDC_with_PETSc.py '
2120
+ str(num_procs_space) + ' ' + 'step_7_C_out_1x1.txt').split()
2221
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=my_env, cwd=cwd)
22+
stdout = p.communicate()[0]
23+
print('STDOUT:{}'.format(stdout))
2324
p.wait()
2425
assert p.returncode == 0, 'ERROR: did not get return code 0, got %s with %2i processes' % \
2526
(p.returncode, num_procs)
@@ -34,6 +35,8 @@ def test_C_1x2():
3435
cmd = ('mpirun -np ' + str(num_procs) + ' python pySDC/tutorial/step_7/C_pySDC_with_PETSc.py '
3536
+ str(num_procs_space) + ' ' + 'step_7_C_out_1x2.txt').split()
3637
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=my_env, cwd=cwd)
38+
stdout = p.communicate()[0]
39+
print('STDOUT:{}'.format(stdout))
3740
p.wait()
3841
assert p.returncode == 0, 'ERROR: did not get return code 0, got %s with %2i processes' % \
3942
(p.returncode, num_procs)
@@ -48,6 +51,8 @@ def test_C_2x2():
4851
cmd = ('mpirun -np ' + str(num_procs) + ' python pySDC/tutorial/step_7/C_pySDC_with_PETSc.py '
4952
+ str(num_procs_space) + ' ' + 'step_7_C_out_2x2.txt').split()
5053
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=my_env, cwd=cwd)
54+
stdout = p.communicate()[0]
55+
print('STDOUT:{}'.format(stdout))
5156
p.wait()
5257
assert p.returncode == 0, 'ERROR: did not get return code 0, got %s with %2i processes' % \
5358
(p.returncode, num_procs)

0 commit comments

Comments
 (0)