Skip to content

Commit

Permalink
[test]: Fix grep warning in test/rt/test.bash (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-sareen authored Dec 12, 2024
1 parent 6770639 commit e67910e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/rt/test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ function compile_target_tests_with_flags() {
for test in $@; do
base=$(basename $test)
C=$T/$base.compile.out

trace_test_start $test
FLAGS=""
if [ -f $test.flags ]; then
FLAGS=$(cat $test.flags)
fi
grep -sq 'def\ TARGET_' $test > /dev/null
grep -sq 'def TARGET_' $test > /dev/null
if [ $? = 0 ]; then
target_field="TARGET_${target//-/_}"
FLAGS="$FLAGS -redef-field=${target_field}=true"
Expand All @@ -41,7 +41,7 @@ function run_reserved_code_test() {
for target in $TEST_TARGETS; do
T=$OUT/$target
mkdir -p $T

if [ -d $target ]; then
TESTS=$(ls *.v3 $target/*.v3)
print_compiling $target
Expand Down

0 comments on commit e67910e

Please sign in to comment.