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

mgreber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git


The following commit(s) were added to refs/heads/master by this push:
     new 8407b06b9 dist_test: Add directory support for KUDU_DATA_FILES
8407b06b9 is described below

commit 8407b06b98b895e741db5469d3156c84aa147c15
Author: Gabriella Lotz <[email protected]>
AuthorDate: Tue Oct 14 15:11:14 2025 +0200

    dist_test: Add directory support for KUDU_DATA_FILES
    
    Modified dist_test.py to handle directories in addition to files when
    processing KUDU_DATA_FILES. When a data file path resolves to a
    directory, append a trailing slash so the isolate tool includes it
    recursively.
    
    This change is needed for the Swagger documentation patch, which
    requires setting the document root to include the entire www/
    directory structure.
    
    Change-Id: Ib1f88760f43c1cacb538f64454c6d3657295742f
    Reviewed-on: http://gerrit.cloudera.org:8080/23538
    Reviewed-by: Marton Greber <[email protected]>
    Tested-by: Marton Greber <[email protected]>
    Reviewed-by: Zoltan Martonka <[email protected]>
---
 build-support/dist_test.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/build-support/dist_test.py b/build-support/dist_test.py
index 29f666bbf..d0a5e89fc 100755
--- a/build-support/dist_test.py
+++ b/build-support/dist_test.py
@@ -388,6 +388,9 @@ def create_archive_input(staging, execution, dep_extractor,
     for data_file in execution.env['KUDU_DATA_FILES'].split(","):
       # Paths are relative to the test binary.
       path = os.path.join(os.path.dirname(abs_test_exe), data_file)
+      # If it's a directory, add a trailing slash so isolate knows to include 
it recursively
+      if os.path.isdir(path):
+        path += "/"
       files.append(abs_to_rel(path, staging))
 
   out_archive = os.path.join(staging.dir, '%s.gen.json' % 
(execution.test_name))

Reply via email to