From 687bec76fa70cecb8f2c4916f4cffc68b20c81e5 Mon Sep 17 00:00:00 2001 From: Karthik Subbarao Date: Thu, 19 Sep 2024 22:09:44 +0000 Subject: [PATCH] Update build.sh and fix import in save/restore pytest Signed-off-by: Karthik Subbarao --- build.sh | 8 ++++---- tests/test_save_and_restore.py | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 4766eb1..e267bda 100755 --- a/build.sh +++ b/build.sh @@ -18,10 +18,10 @@ cargo build --all --all-targets --release echo "Running unit tests..." cargo test --features enable-system-alloc -# Ensure VERSION environment variable is set -if [ -z "$VERSION" ]; then - echo "ERROR: VERSION environment variable is not set." - exit 1 +# Ensure SERVER_VERSION environment variable is set +if [ -z "$SERVER_VERSION" ]; then + echo "ERROR: SERVER_VERSION environment variable is not set. Defaulting to unstable." + export SERVER_VERSION="unstable" fi if [ "$SERVER_VERSION" != "unstable" ] && [ "$SERVER_VERSION" != "8.0.0" ] ; then diff --git a/tests/test_save_and_restore.py b/tests/test_save_and_restore.py index 4787ba9..e0c643e 100644 --- a/tests/test_save_and_restore.py +++ b/tests/test_save_and_restore.py @@ -1,6 +1,7 @@ import pytest, time import os from valkey_test_case import ValkeyTestCase +from valkeytests.conftest import resource_port_tracker class TestBloomSaveRestore(ValkeyTestCase):