aboutsummaryrefslogtreecommitdiffstats
path: root/tests/simple/run-test.sh
diff options
context:
space:
mode:
authorEmily <vcs@emily.moe>2019-09-03 00:57:32 +0100
committerEmily <vcs@emily.moe>2019-09-03 00:57:32 +0100
commit69a5dea89ef8cbf8bcc1b761518738623e028e38 (patch)
tree3fa605f7aeabce8685e3e905bd71e0578068089d /tests/simple/run-test.sh
parent7e8f7f4c59c96897159d32771d0c7179c5474281 (diff)
downloadyosys-69a5dea89ef8cbf8bcc1b761518738623e028e38.tar.gz
yosys-69a5dea89ef8cbf8bcc1b761518738623e028e38.tar.bz2
yosys-69a5dea89ef8cbf8bcc1b761518738623e028e38.zip
Use `command -v` rather than `which`
Diffstat (limited to 'tests/simple/run-test.sh')
-rwxr-xr-xtests/simple/run-test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/simple/run-test.sh b/tests/simple/run-test.sh
index 967ac49f2..f20fd0d30 100755
--- a/tests/simple/run-test.sh
+++ b/tests/simple/run-test.sh
@@ -12,7 +12,7 @@ done
shift "$((OPTIND-1))"
# check for Icarus Verilog
-if ! which iverilog > /dev/null ; then
+if ! command -v iverilog > /dev/null ; then
echo "$0: Error: Icarus Verilog 'iverilog' not found."
exit 1
fi