mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-12 18:25:07 +08:00
pm3test: show output in case of failure
This commit is contained in:
parent
2a91310bf5
commit
e2e8cecc30
1 changed files with 3 additions and 1 deletions
|
@ -37,7 +37,8 @@ function CheckExecute() {
|
|||
|
||||
for I in $RETRY
|
||||
do
|
||||
if eval "$2 | grep -q '$3'"; then
|
||||
RES=$(eval "$2")
|
||||
if echo "$RES" | grep -q "$3"; then
|
||||
echo -e "$1 ${C_GREEN}[OK]${C_NC}"
|
||||
return 0
|
||||
fi
|
||||
|
@ -51,6 +52,7 @@ function CheckExecute() {
|
|||
fi
|
||||
|
||||
echo -e "$1 ${C_RED}[Fail]${C_NC}"
|
||||
echo -e "Execution trace:\n$RES"
|
||||
return 1
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue