meta-phosphor: run-ptest: fix shellcheck issues
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Iaefc691917edf1342854fa4ea0950283a7d175c8
diff --git a/meta-phosphor/recipes-phosphor/interfaces/bmcweb/run-ptest b/meta-phosphor/recipes-phosphor/interfaces/bmcweb/run-ptest
index f2a522a..49d8d21 100644
--- a/meta-phosphor/recipes-phosphor/interfaces/bmcweb/run-ptest
+++ b/meta-phosphor/recipes-phosphor/interfaces/bmcweb/run-ptest
@@ -1,8 +1,7 @@
#!/bin/sh
-for i in `ls test/*_test`; do
- $i
- if [ $? -eq 0 ]; then
+for i in test/*_test; do
+ if $i ; then
echo "PASS: $i"
else
echo "FAIL: $i"
diff --git a/meta-phosphor/scripts/run-repotest b/meta-phosphor/scripts/run-repotest
index c769ade..9abc583 100755
--- a/meta-phosphor/scripts/run-repotest
+++ b/meta-phosphor/scripts/run-repotest
@@ -146,7 +146,6 @@
meta-phosphor/recipes-phosphor/initrdscripts/files/obmc-shutdown.sh
meta-phosphor/recipes-phosphor/initrdscripts/files/obmc-update.sh
meta-phosphor/recipes-phosphor/initrdscripts/phosphor-mmc-init/mmc-init.sh
-meta-phosphor/recipes-phosphor/interfaces/bmcweb/run-ptest
meta-phosphor/recipes-support/nss-pam-ldapd/files/nslcd.init
meta-quanta/meta-common/recipes-quanta/network/usb-network/usb-network.sh
meta-quanta/meta-gbs/recipes-gbs/gbs-bios-update/files/bios-update.sh