Skip to content

Commit 42e9cc1

Browse files
coverage ci fix (#337)
* [fix] fix torch rdb test conditions * [add] using only generic build on coverage (skipping aof and slaves since they dont increase coverage) * [wip] wip on coverage fixing
1 parent 12ed36c commit 42e9cc1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

test/includes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
TEST_TFLITE = os.environ.get("TEST_TFLITE") != "0" and os.environ.get("WITH_TFLITE") != "0"
2121
TEST_PT = os.environ.get("TEST_PT") != "0" and os.environ.get("WITH_PT") != "0"
2222
TEST_ONNX = os.environ.get("TEST_ONNX") != "0" and os.environ.get("WITH_ORT") != "0"
23+
COV = os.environ.get("COV") != "0" and os.environ.get("COV") != "0"
2324
DEVICE = os.environ.get('DEVICE', 'CPU').upper().encode('utf-8', 'ignore').decode('utf-8')
2425
VALGRIND = os.environ.get("VALGRIND") == "1"
2526
print(f"Running tests on {DEVICE}\n")

test/tests_pytorch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ def test_pytorch_model_rdb_save_load(env):
636636
if env.useAof or not TEST_PT:
637637
env.debugPrint("skipping {}".format(sys._getframe().f_code.co_name), force=True)
638638
return
639-
if DEVICE == "GPU":
639+
if DEVICE == "GPU" or COV:
640640
env.debugPrint("skipping {} since it's hanging CI".format(sys._getframe().f_code.co_name), force=True)
641641
return
642642

0 commit comments

Comments
 (0)