-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests: extended logging on expect test abort #4343
tests: extended logging on expect test abort #4343
Conversation
1fa2b0f
to
2215ac9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great.
I don't see any problems with this. This is a useful fix.
Codecov Report
@@ Coverage Diff @@
## master #4343 +/- ##
=======================================
Coverage 55.23% 55.24%
=======================================
Files 395 395
Lines 50351 50351
=======================================
+ Hits 27813 27817 +4
+ Misses 20145 20143 -2
+ Partials 2393 2391 -2
Help us with your feedback. Take ten seconds to tell us how you rate us. |
@@ -50,11 +50,41 @@ proc ::AlgorandGoal::Abort { ERROR } { | |||
# terminate child algod processes, if there are active child processes the test will hang on a test failure | |||
puts "GLOBAL_TEST_ROOT_DIR $::GLOBAL_TEST_ROOT_DIR" | |||
puts "GLOBAL_NETWORK_NAME $::GLOBAL_NETWORK_NAME" | |||
|
|||
log_user 1 | |||
set NODE_DATA_DIR $GLOBAL_TEST_ROOT_DIR/Primary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if Primary
and Node
are not the names used by a test?
WaitForRound
gets the node dir as param: { WAIT_FOR_ROUND_NUMBER NODE_DATA_DIR
which takes care of this possibility, but not here.
Moved logs printing from
WaitForRound
toAbort
method.Sometimes expect tests fail with messages like this that do not help at all.
Now test output has more details.