2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-23 15:08:24 +00:00

chore: run specified test alone

This commit is contained in:
Gavin D'souza 2020-07-13 19:12:23 +05:30
parent 87bc347b5c
commit 939d3d5c6d
2 changed files with 9 additions and 9 deletions

View File

@ -18,42 +18,42 @@ matrix:
- name: "Python 2.7 Basic Setup"
python: 2.7
env: TEST=bench
script: python -m unittest -v bench.tests.basic
script: python bench/tests/test_init.py TestBenchInit.basic
- name: "Python 3.6 Basic Setup"
python: 3.6
env: TEST=bench
script: python -m unittest -v bench.tests.basic
script: python bench/tests/test_init.py TestBenchInit.basic
- name: "Python 3.7 Basic Setup"
python: 3.7
env: TEST=bench
script: python -m unittest -v bench.tests.basic
script: python bench/tests/test_init.py TestBenchInit.basic
- name: "Python 3.8 Production Setup"
python: 3.8
env: TEST=bench
script: python -m unittest -v bench.tests.production_setup
script: python bench/tests/test_setup_production.py TestSetupProduction.production
- name: "Python 2.7 Production Setup"
python: 2.7
env: TEST=bench
script: python -m unittest -v bench.tests.production_setup
script: python bench/tests/test_setup_production.py TestSetupProduction.production
- name: "Python 3.6 Production Setup"
python: 3.6
env: TEST=bench
script: python -m unittest -v bench.tests.production_setup
script: python bench/tests/test_setup_production.py TestSetupProduction.production
- name: "Python 3.7 Production Setup"
python: 3.7
env: TEST=bench
script: python -m unittest -v bench.tests.production_setup
script: python bench/tests/test_setup_production.py TestSetupProduction.production
- name: "Python 3.8 Production Setup"
python: 3.8
env: TEST=bench
script: python -m unittest -v bench.tests.production_setup
script: python bench/tests/test_setup_production.py TestSetupProduction.production
- name: "Python 3.6 Easy Install"
python: 3.6

View File

@ -33,7 +33,7 @@ class TestSetupProduction(TestBenchBase):
bench.utils.exec_cmd("sudo bench disable-production", cwd=bench_path)
def production_setup(self):
def production(self):
try:
self.test_setup_production()
except Exception: