From 69008033b0fa3e89bf0cc6e1988fac6194b8136b Mon Sep 17 00:00:00 2001 From: Jessica Mauvais Date: Tue, 14 Jan 2025 16:48:56 -0800 Subject: [PATCH] Revert "test the batch chunks" This reverts commit eecc8f80d8d919b5907dbea51b70234e6c411df6. --- .../ddm/test/integrative/integrative_batch_chunk_tests | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/atomsci/ddm/test/integrative/integrative_batch_chunk_tests b/atomsci/ddm/test/integrative/integrative_batch_chunk_tests index 6ded088e..cceb7ba5 100755 --- a/atomsci/ddm/test/integrative/integrative_batch_chunk_tests +++ b/atomsci/ddm/test/integrative/integrative_batch_chunk_tests @@ -1,4 +1,3 @@ - #!/bin/bash set -e @@ -25,14 +24,9 @@ calculate_hash() { # Function to determine if a folder belongs to the selected subset belongs_to_subset() { local folder="$1" - echo "folder $folder" local hash=$(calculate_hash "$folder") local hash_decimal=$((0x${hash:0:8})) local subset=$((hash_decimal % num_subsets)) - echo "hash $hash" - echo "hash_decimal $hash_decimal" - echo "subset $subset" - echo "subset_index $subset_index" if [ "$subset" -eq "$subset_index" ]; then return 0 # Folder belongs to the subset else @@ -46,8 +40,8 @@ for folder in "${folders[@]}"; do file=($folder/test_*.py) if [[ -f "$file" && "$folder" != "__pycache__/" ]]; then cd "$folder" - echo "Testing $file $folder" - echo "pytest --capture=sys --capture=fd --cov=atomsci -vv" + echo "Testing $folder" + pytest --capture=sys --capture=fd --cov=atomsci -vv cd .. else echo "Skipping folder: $folder. Not a test directory."