Skip to content

Commit 65c0ef8

Browse files
committed
Excluding system tests from being installed.
1 parent 0c74a59 commit 65c0ef8

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
include README.rst
22
graft gcloud
33
global-exclude *.pyc
4+
recursive-exclude system_tests *

scripts/attempt_system_tests.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,15 @@
2626
import subprocess
2727
import sys
2828

29-
from system_tests.run_system_test import run_module_tests
30-
31-
3229
MODULES = (
3330
'datastore',
3431
'storage',
3532
'pubsub',
3633
'bigquery',
3734
)
3835
SCRIPTS_DIR = os.path.dirname(__file__)
39-
ENCRYPTED_KEYFILE = os.path.abspath(
40-
os.path.join(SCRIPTS_DIR, '..', 'system_tests', 'key.json.enc'))
36+
ROOT_DIR = os.path.abspath(os.path.join(SCRIPTS_DIR, '..'))
37+
ENCRYPTED_KEYFILE = os.path.join(ROOT_DIR, 'system_tests', 'key.json.enc')
4138

4239

4340
def check_environment():
@@ -105,6 +102,9 @@ def prepare_to_run():
105102
def main():
106103
"""Run all the system tests if necessary."""
107104
prepare_to_run()
105+
106+
sys.path.append(ROOT_DIR)
107+
from system_tests.run_system_test import run_module_tests
108108
for module in MODULES:
109109
run_module_tests(module)
110110

0 commit comments

Comments
 (0)