Skip to content
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

scripts/run_tests.sh: Add check dependencies #625

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

foersleo
Copy link
Contributor

@foersleo foersleo commented Jun 5, 2024

Issue #, if available: -

Description of changes:

scripts/run_tests.sh: Add check dependencies

Check that all the dependencies to run the test script are in place and bail out early before spending time on needless work.

The dependencies are:
* running as root
* docker has to function
* pytest-3 needs to be installed

When testing builds for aws/aws-nitro-enclaves-sdk-bootstrap#28 I struggled through some hardships with the dependencies needed to run the test scripts. Let's make this easier for the next person by bailing out early if dependencies are not met.

Testing done:

Tested all cases starting from a vanilla Ubuntu instance running without root privileges, adding another dependency with each iteration.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Check that all the dependencies to run the test script are in place and
bail out early before spending time on needless work.

The dependencies are:
* running as root
* docker has to function
* pytest-3 needs to be installed

Signed-off-by: Leonard Foerster <[email protected]>
@foersleo foersleo merged commit f165f19 into aws:main Jun 6, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants