Skip to content

Commit

Permalink
allow runt_test to be killed with Ctrl+C (#243)
Browse files Browse the repository at this point in the history
* allow runt_test to be killed with Ctrl+C

* corrected english (such a difficult language)

* trying w/o the -n

* no need to downgrade conda anymore

* ok we need a -n

* 1 for circleci ?

* Somehow picks up wrong mesa

* Update circleci_mac.sh
  • Loading branch information
doutriaux1 authored Sep 3, 2017
1 parent d7ac71f commit 44dd0b6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ before_install:
- bash miniconda.sh -b -p $HOME/miniconda
- conda config --set always_yes yes --set changeps1 no
- conda update -y -q conda
- conda install "conda=4.3.11"
script:
- conda install -c uvcdat/label/nightly -c conda-forge -c uvcdat "vtk-cdat" cdutil genutil dv3d "mesalib=17.1.4=3" nose image-compare flake8 matplotlib
- export UVCDAT_ANONYMOUS_LOG=False
Expand All @@ -22,6 +21,6 @@ script:
- git clone git://github.com/uv-cdat/uvcdat-testdata
- cd uvcdat-testdata ; git checkout $TRAVIS_BRANCH ; cd ..
- df -h
- python run_tests.py -n 1 -v2 -g --no-vtk-ui
- python run_tests.py -v2 -n2 -g --no-vtk-ui
after_success:
- if [ "$TRAVIS_BRANCH" == "master" -a "$TRAVIS_PULL_REQUEST" == "false" ]; then conda install conda-build && conda install anaconda-client && bash ci-support/conda_upload.sh ; fi
3 changes: 1 addition & 2 deletions ci-support/circleci_mac.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
export UVCDAT_ANONYMOUS_LOG=False
export PATH=${HOME}/miniconda/bin:${PATH}
#export VCS_BACKGROUND=0 # circleci seg faults on bg=1
#python run_tests.py -v2 -g -H -p # -H and -p for collection by artifacts
python run_tests.py -n 1 -v2 -g --no-vtk-ui
python run_tests.py -n 2 -v2 -g --no-vtk-ui
RESULT=$?
echo "test command exit result:",$RESULT
if [ $RESULT -eq 0 -a $CIRCLE_BRANCH == "master" ]; then conda install conda-build anaconda-client ; fi
Expand Down
2 changes: 1 addition & 1 deletion ci-support/circleci_mac_dep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
ls
pwd
export PATH=${HOME}/miniconda/bin:${PATH}
conda install -c uvcdat/label/nightly -c conda-forge -c uvcdat vtk-cdat cdutil genutil dv3d mesalib nose image-compare flake8 matplotlib
conda install -c uvcdat/label/nightly -c conda-forge -c uvcdat vtk-cdat cdutil genutil dv3d mesalib=17.1.4=3 nose image-compare flake8 matplotlib
export UVCDAT_ANONYMOUS_LOG=False
python setup.py install --old-and-unmanageable
1 change: 0 additions & 1 deletion ci-support/circleci_mac_machine_pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ bash miniconda.sh -b -p $HOME/miniconda
export PATH=${HOME}/miniconda/bin:${PATH}
conda config --set always_yes yes --set changeps1 no
conda update -y -q conda
conda install "conda=4.3.11"
conda config --set anaconda_upload no
git clone git://github.com/uv-cdat/uvcdat-testdata
5 changes: 4 additions & 1 deletion run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,10 @@ def run_nose(test_name):
# Make sure we have sample data
cdat_info.download_sample_data_files(os.path.join(sys.prefix,"share","vcs","test_data_files.txt"),cdat_info.get_sampledata_path())
p = multiprocessing.Pool(args.cpus)
outs = p.map(run_nose, names)
try:
outs = p.map_async(run_nose, names).get(3600)
except KeyboardInterrupt:
sys.exit(1)
results = {}
failed = []
for d in outs:
Expand Down

0 comments on commit 44dd0b6

Please sign in to comment.