From 1161519ad56f7b3036597fd901e39fd091fd2751 Mon Sep 17 00:00:00 2001
From: Georgy Moshkin <gmoshkin@picodata.io>
Date: Tue, 17 Dec 2024 16:54:15 +0300
Subject: [PATCH] test: fix CI=1 hack for local runs

---
 test/conftest.py | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/test/conftest.py b/test/conftest.py
index c14e414055..14e2d0bc1a 100644
--- a/test/conftest.py
+++ b/test/conftest.py
@@ -2184,15 +2184,7 @@ class PgClient:
 
 
 def build_profile() -> str:
-    from_env = os.environ.get("BUILD_PROFILE")
-
-    if "CI" in os.environ:
-        # When running in CI BUILD_PROFILE must always be specified, we rely
-        # this in a couple of tests
-        assert from_env is not None, "BUILD_PROFILE must always be set in CI"
-
-    # When running on a developers machine, priorities the usability
-    return from_env or "dev"
+    return os.environ.get("BUILD_PROFILE", "dev")
 
 
 def get_test_dir():
-- 
GitLab