We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aad3e9b commit ba99c96Copy full SHA for ba99c96
solana/run-tests
@@ -1,13 +1,14 @@
1
#!/usr/bin/env bash
2
3
+set -euo pipefail
4
+
5
# Run each tests/*.test.ts file separately to avoid account state persisting between tests
6
for file in `ls tests/*.test.ts`
7
do
8
# convert file-name to FILE_NAME
- declare -u env_flag
9
filename=$(basename -- "$file")
10
filename="${filename%.test.*}"
- env_flag=${filename//-/_}
11
-
+ env_flag="$(tr '[:lower:]' '[:upper:]' <<< ${filename//-/_})"
12
13
env $env_flag=1 bash -c 'anchor test --skip-build'
14
done
0 commit comments