Skip to content

Commit

Permalink
fix distributed test cases (PaddlePaddle#69)
Browse files Browse the repository at this point in the history
* fix distributed test cases

* fix models run
  • Loading branch information
shjNT authored May 19, 2022
1 parent 336aa63 commit fe61474
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 10 deletions.
4 changes: 2 additions & 2 deletions tests/test_models/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ else
if [ $? -ne 0 ]; then
echo ${file} >> result.txt
bug=`expr ${bug} + 1`
serial_bug=`expr ${bug} + 1`
serial_bug=`expr ${serial_bug} + 1`
fi
fi
done
Expand All @@ -52,7 +52,7 @@ else
if [ $? -ne 0 ]; then
echo ${file} >> result.txt
bug=`expr ${bug} + 1`
distributed_bug=`expr ${bug} + 1`
distributed_bug=`expr ${distributed_bug} + 1`
fi
fi
done
Expand Down
3 changes: 2 additions & 1 deletion tests/test_models/test_cylinder3d_steady.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,5 @@ def test_cylinder3d_steady_1():


if __name__ == '__main__':
pytest.main([sys.argv[0]])
code = pytest.main([sys.argv[0]])
sys.exit(code)
3 changes: 2 additions & 1 deletion tests/test_models/test_cylinder3d_unsteady.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,5 @@ def test_cylinder3d_steady_1():


if __name__ == '__main__':
pytest.main([sys.argv[0]])
code = pytest.main([sys.argv[0]])
sys.exit(code)
3 changes: 2 additions & 1 deletion tests/test_models/test_darcy2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,5 @@ def test_darcy2d_1():


if __name__ == '__main__':
pytest.main([sys.argv[0]])
code = pytest.main([sys.argv[0]])
sys.exit(code)
3 changes: 2 additions & 1 deletion tests/test_models/test_kovasznay.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,5 @@ def test_kovasznay_1():


if __name__ == '__main__':
pytest.main([sys.argv[0]])
code = pytest.main([sys.argv[0]])
sys.exit(code)
3 changes: 2 additions & 1 deletion tests/test_models/test_laplace2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,5 @@ def test_laplace2d_1():


if __name__ == '__main__':
pytest.main([sys.argv[0]])
code = pytest.main([sys.argv[0]])
sys.exit(code)
3 changes: 2 additions & 1 deletion tests/test_models/test_ldc2d_steady0.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,5 @@ def test_ldc2d_steady_1():


if __name__ == '__main__':
pytest.main([sys.argv[0]])
code = pytest.main([sys.argv[0]])
sys.exit(code)
3 changes: 2 additions & 1 deletion tests/test_models/test_ldc2d_steady1.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,5 @@ def test_ldc2d_steady_1():


if __name__ == '__main__':
pytest.main([sys.argv[0]])
code = pytest.main([sys.argv[0]])
sys.exit(code)
3 changes: 2 additions & 1 deletion tests/test_models/test_ldc2d_unsteady_t.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,5 @@ def test_ldc2d_unsteady_t_1():


if __name__ == '__main__':
pytest.main([sys.argv[0]])
code = pytest.main([sys.argv[0]])
sys.exit(code)

0 comments on commit fe61474

Please sign in to comment.