Skip to content

Instantly share code, notes, and snippets.

@saml
Created June 12, 2019 13:55
Show Gist options
  • Save saml/333ccaae450a4d482d49eaafb6d5d6bf to your computer and use it in GitHub Desktop.
Save saml/333ccaae450a4d482d49eaafb6d5d6bf to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ $# -gt 0 ]
then
cmd="$@"
else
cmd='pytest -m "not slow" -n 8 tests/ --api http://localhost:8080'
fi
python wait_for_apps.py && $cmd
#!/bin/sh
if [ $# -gt 0 ]
then
python wait_for_apps.py && "$@"
else
python wait_for_apps.py && pytest -m "not slow" -n 8 tests/ --api http://localhost:8080
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment