tests: skip wcs tests if wcsctl is not found (#21826)

This commit is contained in:
Frédéric Péters 2018-02-13 15:55:46 +01:00
parent d14c377f71
commit f4db0132fa
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ from test_manager import login, admin_user
pytestmark = pytest.mark.django_db
wcsctl_present = pytest.mark.skipif('WCSCTL' not in os.environ,
wcsctl_present = pytest.mark.skipif('WCSCTL' not in os.environ or not os.path.exists(os.environ['WCSCTL']),
reason='WCSCTL not defined in environment')
WCSCTL = os.environ.get('WCSCTL')