Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

Commit 9483634

Browse files
authored
update (algorand#3753)
Summary The goal-partkey-information test randomly fails. The changes in this PR improve the intermediate logs, which would be helpful in analyzing the source of the failure. Test Plan This is a test.
1 parent a974e34 commit 9483634

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/scripts/e2e_subs/goal-partkey-information.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ date "+$0 start %Y%m%d_%H%M%S"
88

99
# Registered Account ParticipationID Last Used First round Last round
1010
# yes LFMT...RHJQ 4UPT6AQC... 4 0 3000000
11-
OUTPUT=$(goal account listpartkeys|tail -n 1|tr -s ' ')
11+
OUTPUT=$(goal account listpartkeys)
12+
OUTPUT=$(echo "$OUTPUT"|tail -n 1|tr -s ' ')
1213
if [[ "$OUTPUT" != yes* ]]; then echo "Registered should be 'yes' but wasn't."; exit 1; fi
1314
if [[ $(echo "$OUTPUT" | cut -d' ' -f 4) == 0 ]]; then echo "Last Used shouldn't be 0 but was."; exit 1; fi
1415
if [[ $(echo "$OUTPUT" | cut -d' ' -f 5) != 0 ]]; then echo "First round should be 0 but wasn't."; exit 1; fi
@@ -36,7 +37,8 @@ if ! echo "$OUTPUT" | grep -q 'Key dilution:[[:space:]]* 100\(00\)\?';
3637
if ! echo "$OUTPUT" | grep -q 'Participation ID:[[:space:]]*[[:alnum:]]\{52\}'; then echo "There should be a participation ID."; exit 1; fi
3738

3839
# Test multiple data directory supported
39-
OUTPUT=$(goal account partkeyinfo -d "$ALGORAND_DATA" -d "$ALGORAND_DATA2"|grep -c 'Participation ID')
40+
OUTPUT=$(goal account partkeyinfo -d "$ALGORAND_DATA" -d "$ALGORAND_DATA2")
41+
OUTPUT=$(echo "$OUTPUT"|grep -c 'Participation ID')
4042
if [[ "$OUTPUT" != "2" ]]; then echo "Two Participation IDs should have been found."; exit 1; fi
4143

4244
# get stderr from this one

0 commit comments

Comments
 (0)