Skip to content

Commit 5d56559

Browse files
committed
fix testkit build
1 parent 3f7614e commit 5d56559

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

testkit/build.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,10 @@ def build_testkit_backend(isLite):
5050

5151

5252
if __name__ == "__main__":
53-
isLite = os.environ["TEST_DRIVER_LITE"]
53+
isLite = os.environ.get("TEST_DRIVER_LITE", False)
5454
build_core()
5555
build_bolt_connection()
5656
if isLite:
5757
build_driver_lite()
58-
else:
59-
build_driver()
58+
build_driver()
6059
build_testkit_backend(isLite)

testkit/integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def test_driver_lite():
1818

1919
if __name__ == "__main__":
2020
os.environ["TEST_NEO4J_IPV6_ENABLED"] = "False"
21-
if os.environ["TEST_DRIVER_LITE"]:
21+
if os.environ.get("TEST_DRIVER_LITE", False):
2222
test_driver_lite()
2323
else:
2424
test_driver()

testkit/stress.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def test_driver_lite():
1919
os.environ['STRESS_TEST_MODE'] = 'fastest'
2020
os.environ['RUNNING_TIME_IN_SECONDS'] = \
2121
os.environ.get('TEST_NEO4J_STRESS_DURATION', 0)
22-
if os.environ["TEST_DRIVER_LITE"]:
22+
if os.environ.get("TEST_DRIVER_LITE", False):
2323
test_driver_lite()
2424
else:
2525
test_driver()

testkit/unittests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_driver_lite():
2525
if __name__ == "__main__":
2626
run(['npm', '--prefix', 'core', 'run', 'test'])
2727
run(['npm', '--prefix', 'bolt-connection', 'run', 'test'])
28-
if os.environ["TEST_DRIVER_LITE"]:
28+
if os.environ.get("TEST_DRIVER_LITE", False):
2929
test_driver_lite()
3030
else:
3131
test_driver()

0 commit comments

Comments
 (0)