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
NO-JIRA: Allow the command in wait_for_cmd_amount to receive arguments to pass to the inner function #5668
NO-JIRA: Allow the command in wait_for_cmd_amount to receive arguments to pass to the inner function #5668
Conversation
This was already assumed but it is not the case now
@ori-amizur: This pull request explicitly references no jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/test edge-e2e-ai-operator-ztp-sno-day2-workers |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ori-amizur The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5668 +/- ##
==========================================
+ Coverage 67.73% 67.90% +0.16%
==========================================
Files 233 233
Lines 34326 34617 +291
==========================================
+ Hits 23252 23507 +255
- Misses 9009 9024 +15
- Partials 2065 2086 +21 |
/retest |
@@ -123,10 +123,10 @@ function wait_for_cmd_amount() { | |||
interval="$2" | |||
cmd="$3" | |||
|
|||
until [ $(${cmd} | wc -l) -eq ${amount} ]; do | |||
until [ $(${cmd} "${@:4}" | wc -l) -eq ${amount} ]; do |
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.
Would prefer to create a var in a similar fashion to 'cmd'
I.e
arguments = "${@:4}"
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.
Since it is multiple arguments, it seems better this way
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.
Ok
/lgtm |
/test edge-e2e-ai-operator-ztp-node-labels |
/hold |
/unhold |
@ori-amizur: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
This was already assumed but it is not the case now
List all the issues related to this PR
What environments does this code impact?
How was this code tested?
Checklist
docs
, README, etc)Reviewers Checklist
/cc @paul-maidment