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

Run command in each directory #9

Open
s2t2 opened this issue Feb 7, 2022 · 0 comments
Open

Run command in each directory #9

s2t2 opened this issue Feb 7, 2022 · 0 comments

Comments

@s2t2
Copy link
Member

s2t2 commented Feb 7, 2022

For example, running tests inside each individual repo (because running pytest from the top level is giving errors related to duplicate test file names or something):

for dir in ~/Desktop/grading-rps/*; do (cd "$dir" && pwd && pytest && cd ..); done

h/t: https://superuser.com/questions/44787/looping-through-subdirectories-and-running-a-command-in-each/44795

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant