Skip to content

Commit 17d4bcd

Browse files
committed
Update run-test.sh.in
1 parent fadc061 commit 17d4bcd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/riscv/riscv-vector-tests/run-test.sh.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ failed=0
8888

8989
for testcase in ${testcases[@]}; do
9090
echo "Testcase: $testcase"
91-
find . -type f -name "${testcase}*" 2>/dev/null | while read -r f; do
91+
while read -r f; do
9292
"$RISCV_TOOLCHAIN_PATH/bin/riscv$XLEN-unknown-elf-objdump" -D "$f" > "$f.dump"
9393
"$RISCV_TOOLCHAIN_PATH/bin/riscv$XLEN-unknown-elf-objcopy" -O binary "$f" "$f.bin"
9494
echo "running $SCRIPT_DIR/../../../sim/simx/simx -v $f.bin"
95-
"$SCRIPT_DIR/../../../sim/simx/simx" -v "$f.bin" &> "$f.log"
95+
"$SCRIPT_DIR/../../../sim/simx/simx" -v "$f.bin" > "$f.log"
9696
if [ $? -eq 1 ]; then
9797
echo "$f PASSED"
9898
((passed++))
@@ -106,7 +106,7 @@ for testcase in ${testcases[@]}; do
106106
cat "$f.log"
107107
rm -f "$f..bin" "$f.dump" "$f.log" > /dev/null 2>&1
108108
fi
109-
done
109+
done <<< $(find . -type f -name "${testcase}*" 2>/dev/null)
110110
done
111111

112112
popd

0 commit comments

Comments
 (0)