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

Reworked app.run exit code #73

Merged
merged 5 commits into from Jan 26, 2024
Merged

Reworked app.run exit code #73

merged 5 commits into from Jan 26, 2024

Conversation

dmachi
Copy link
Contributor

@dmachi dmachi commented Jan 25, 2024

Here is a new version of the same app.run exit code work. I added a new app to the hello-world scif and used it for tests in test_run. I also added a test for shell substitution issue that @dtrudg reported from my previous PR. This patch includes updates to the changelog and the scif/version.py to bump the version 0.0.84.

@@ -6,3 +6,4 @@ echo "Testing exec of commands:"
docker run -it "${CONTAINER_NAME}" exec hello-world-echo echo "Hello World!"
docker run -it "${CONTAINER_NAME}" exec hello-world-script ls /
docker run -it "${CONTAINER_NAME}" exec hello-world-env env
docker run -it "${CONTAINER_NAME}" exec hello-world-env echo [e]OMG
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar with the test suite here, but does somewhere check that we get the expected TACOS from this command... or is it just ensuring the command runs and exits with success?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only followed the same pattern that existed, but had the same question. It is currently, I believe, just exiting with success (and i verified the output with my eyeballs). I will see if I can add a better check to that. I was in the process of trying to make my tests better and similar to those in test_tests.sh, but I'm not sure those are working properly as it is.

@vsoch how do you/CI run these tests?

@vsoch
Copy link
Owner

vsoch commented Jan 25, 2024

This looks good to me - a very simple change to get the desired functionality, and with a test. @dtrudg do you approve as well?

Copy link

@dtrudg dtrudg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vsoch
Copy link
Owner

vsoch commented Jan 26, 2024

Alright - time for a take 2!

@vsoch vsoch merged commit 3b00f6f into vsoch:master Jan 26, 2024
1 check 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.

None yet

3 participants