Merge "Now that we can execute_tests, we want to give some more information about debug options in the TCUP file and documentation."

This commit is contained in:
Jenkins 2014-04-08 17:22:52 +00:00 committed by Gerrit Code Review
commit 1e41ce2b1f
2 changed files with 12 additions and 2 deletions

View File

@ -29,6 +29,7 @@ There are several ways to trouble shoot, TCUP.
1. Check your environment variables include the OS_* values using `export`
1. Make sure you can access Keystone using `curl $OS_AUTH_URL`
1. Make sure your credentials are working using `keystone catalog`
1. `Export DEBUG=true` to turn on additional logging and force TCUP into manual run mode
## Docker Tips
1. You can run Docker without sudo!
@ -43,4 +44,10 @@ There are several ways to trouble shoot, TCUP.
1. exit from inside the container with `Ctrl-p` + `Ctrl-q`
1. Orphaned Containers: Over time, you may end up with [orphaned contaniers](http://jimhoskins.com/2013/07/27/remove-untagged-docker-images.html), use the following to clean them up
1. `sudo docker rm $(docker ps -a -q)`
1. `sudo docker rmi $(docker images | grep "^<none>" | awk "{print $3}")`
1. `sudo docker rmi $(docker images | grep "^<none>" | awk "{print $3}")`
## For Developers
If you run TCUP in debug mode (`export DEBUG=true`) then TCUP will automatically mount your PWD as /dev.
If you run TCUP from your Refstack clone, then you can work directly in Refstack code from inside
a TCUP container from the /dev directory.

View File

@ -89,8 +89,11 @@ if __name__ == "__main__":
docker_run += ' -t %s' % (image)
if "DEBUG" in user_env_vars:
docker_run += " /bin/bash"
logger.info("""Debug mode does not start tests!
You must run `refstack/tools/execute_test.py \
--tempest-home /tempest` to complete processing""")
else:
docker_run += " cd refstack; python refstack/tools/execute_test.py" \
docker_run += " cd refstack; refstack/tools/execute_test.py" \
" --tempest-home /tempest" \
" --callback ${api_addr} ${test_id}"
if "DEBUG" in user_env_vars: