Skip to content

Commit eb75de9

Browse files
committed
Script to run all python samples in one go
1 parent e4d5477 commit eb75de9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

spark/run_all.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
readonly c_step="$(tput setaf 6)"
4+
readonly c_norm="$(tput sgr0)"
5+
readonly excluded=(helpers.py hft.py container_caching.py)
6+
7+
for file in *.py; do
8+
if [[ ! " ${excluded[*]} " =~ " ${file} " ]]; then
9+
echo -e "${c_step}Running${c_norm} $file"
10+
spark-submit $file 2>/dev/null
11+
fi
12+
done

0 commit comments

Comments
 (0)