Skip to content

Pass go tests flags via env.#833

Merged
metal3-io-bot merged 1 commit intometal3-io:masterfrom
s3rj1k:TEST
Mar 29, 2021
Merged

Pass go tests flags via env.#833
metal3-io-bot merged 1 commit intometal3-io:masterfrom
s3rj1k:TEST

Conversation

@s3rj1k
Copy link
Copy Markdown
Member

@s3rj1k s3rj1k commented Mar 24, 2021

To make local development more convenient this PR add ability to pass go test flags via envars directly to unit-tests that are started in docker/podman instance.

So effectively one could use something like this:

CONTAINER_RUNTIME=docker TEST_FLAGS="-failfast" ./hack/unit.sh

Setting failfast flag and removing verbose output is super-helpful on local dev environment when screen is small (less to scroll) and CPU/MEM resources are limited, so running all tests takes some time.

(mainly this is scroll issue actually, but could also be helpful in other cases)

Signed-off-by: s3rj1k evasive.gyron@gmail.com

Signed-off-by: s3rj1k <evasive.gyron@gmail.com>
@metal3-io-bot metal3-io-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Mar 24, 2021
@s3rj1k
Copy link
Copy Markdown
Member Author

s3rj1k commented Mar 24, 2021

/assign @russellb

@s3rj1k
Copy link
Copy Markdown
Member Author

s3rj1k commented Mar 24, 2021

/test-integration

@s3rj1k
Copy link
Copy Markdown
Member Author

s3rj1k commented Mar 26, 2021

@dhellmann Can you please also look at this, looks very trivial, but helps enormously, thanks.

@hardys
Copy link
Copy Markdown
Member

hardys commented Mar 29, 2021

/approve

@metal3-io-bot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: elfosardo, hardys, s3rj1k

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@metal3-io-bot metal3-io-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 29, 2021
@zaneb
Copy link
Copy Markdown
Member

zaneb commented Mar 29, 2021

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 29, 2021
@metal3-io-bot metal3-io-bot merged commit d7a2fed into metal3-io:master Mar 29, 2021
@s3rj1k s3rj1k deleted the TEST branch March 29, 2021 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants