Skip to content

Commit

Permalink
Update build.sh and fix import in save/restore pytest
Browse files Browse the repository at this point in the history
Signed-off-by: Karthik Subbarao <karthikrs2021@gmail.com>
  • Loading branch information
KarthikSubbarao committed Sep 19, 2024
1 parent bc178be commit 7e77f7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/test_save_and_restore.py
Original file line number Diff line number Diff line change
@@ -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):

Expand Down

0 comments on commit 7e77f7c

Please sign in to comment.