Skip to content

Commit 61ff3a0

Browse files
committed
Requested changes; updated multiline echo to file, made $file local
1 parent 6697fb9 commit 61ff3a0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

runtime_tests/build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ ABS_PATH=$(abs_dirname "./$TEST_DIR")
4040

4141
compileRuntimeTests(){
4242
local -i i=0
43+
local file
4344
for file in $@; do
4445

4546
# /path/to/file.ext -> /path/to/file
@@ -57,7 +58,7 @@ compileRuntimeTests(){
5758
echo " $((100 * $i / $#))% | $test_name"
5859

5960
# Output the test file, which will be executed in JSDOM.
60-
echo "
61+
cat > $test_loc/build/$test_name.html << EOF
6162
<html>
6263
<head>
6364
<title>$test_name</title>
@@ -77,7 +78,8 @@ $(
7778
)
7879
</script>
7980
</head>
80-
</html>" > $test_loc/build/$test_name.html
81+
</html>
82+
EOF
8183

8284
done
8385
}

0 commit comments

Comments
 (0)