Skip to content

Commit 0ad2140

Browse files
committed
skip business_cycle
1 parent 75d8018 commit 0ad2140

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

testing/run_py_files.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,19 @@ if [ ! -d "$TARGET_DIR" ]; then
1717
exit 1
1818
fi
1919

20-
# Find and execute all Python files
20+
# List of files to SKIP
21+
SKIP_FILES=("business_cycle.py")
22+
23+
# Construct the find command dynamically
24+
FIND_CMD=(find "$TARGET_DIR" -type f -name "*.py")
25+
26+
for skip in "${SKIP_FILES[@]}"; do
27+
FIND_CMD+=(! -name "$skip")
28+
done
29+
30+
# Execute the constructed find command
2131
echo "Searching for Python files in $TARGET_DIR..."
22-
PYTHON_FILES=$(find "$TARGET_DIR" -type f -name "*.py" | sort)
32+
PYTHON_FILES=$("${FIND_CMD[@]}" | sort)
2333

2434
if [ -z "$PYTHON_FILES" ]; then
2535
echo "No Python files found in $TARGET_DIR"

0 commit comments

Comments
 (0)