Skip to content

Commit

Permalink
convert to string for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Gartland committed Jan 31, 2024
1 parent 2aed4a5 commit dda8e7d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion test/bats/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ test-contract:

# content_list will contain all content in
content_list=$(python ../deploy_helper.py)
for i in ${content_list}
IFS=' ' read -ra my_array <<< "${content_list}"
for i in ${my_array[@]}
do
# only test when we have a .publisher-env file for the content
if [[ -f ../content/bundles/${i}/test/.publisher-env ]]; then
Expand Down
6 changes: 4 additions & 2 deletions test/deploy_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
subdirectories = [d for d in os.listdir(directory_path) if os.path.isdir(os.path.join(directory_path, d))]

# Iterate over the subdirectories
print(f"Subdirectories of the '{directory_name}' directory:")
content_list = []
for subdirectory in subdirectories:
print(subdirectory)
content_list.append(subdirectory)
content_string = " ".join(content_list)
print(content_string)
else:
print(f"The '{directory_name}' directory does not exist in the same directory as the script.")

0 comments on commit dda8e7d

Please sign in to comment.