This is an automated email from the ASF dual-hosted git repository.

asf-gitbox-commits pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git


The following commit(s) were added to refs/heads/main by this push:
     new c1861a920 NO-JIRA: Stop ruby tests creating sasl_conf directory in 
source tree
c1861a920 is described below

commit c1861a9207fa1fd2b327c75ba1926e515666a42c
Author: Andrew Stitcher <[email protected]>
AuthorDate: Wed Aug 5 15:35:19 2026 -0400

    NO-JIRA: Stop ruby tests creating sasl_conf directory in source tree
---
 ruby/CMakeLists.txt               | 1 +
 ruby/tests/test_container_sasl.rb | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/ruby/CMakeLists.txt b/ruby/CMakeLists.txt
index ac7f72a82..33a5395dc 100644
--- a/ruby/CMakeLists.txt
+++ b/ruby/CMakeLists.txt
@@ -103,6 +103,7 @@ if (result EQUAL 0)  # Have minitest
     "PATH=${PATH}"
     "SSL_CERT_DIR=${TEST_CERT_DIR}"
     "RUBYLIB=${RUBYLIB}"
+    "PN_SASL_CONFIG_PATH=${PROJECT_BINARY_DIR}/sasl-conf"
     "${COVERAGE}"
     "COVERAGE_DIR=${PROJECT_BINARY_DIR}/coverage_results/ruby"
     "SASLPASSWD=${CyrusSASL_Saslpasswd_EXECUTABLE}")
diff --git a/ruby/tests/test_container_sasl.rb 
b/ruby/tests/test_container_sasl.rb
index 9e21c3f5c..ce5bdff78 100644
--- a/ruby/tests/test_container_sasl.rb
+++ b/ruby/tests/test_container_sasl.rb
@@ -64,7 +64,7 @@ class ContainerSASLTest < Minitest::Test
 
     def initialize()
       if SASL.extended? # Configure cyrus SASL
-        @conf_dir = File.expand_path('sasl_conf')
+        @conf_dir = ENV['PN_SASL_CONFIG_PATH'] || File.expand_path('sasl_conf')
         @conf_name = "proton-server"
         @database = File.join(@conf_dir, "proton.sasldb")
         @conf_file = File.join(conf_dir,"#{@conf_name}.conf")


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to