diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2016-08-29 21:57:03 +0200 |
---|---|---|
committer | Morgan Richomme <morgan.richomme@orange.com> | 2016-08-30 09:59:09 +0000 |
commit | af984c7ee6a64a7cf073d09637773a001332b01b (patch) | |
tree | 5580e5f19d6dc52b683929b0853a98fde7f1bce3 | |
parent | 75e7373b354998f289e521b6274e130c6600be8d (diff) |
Force stdin, stdout and stderr to be totally unbuffered
It protects against mixed logs as lots of python scripts directly call
print which doesn't flush stdout as opposed to log.info(). This
requirement is induced by subprocess.Popen() initiated by run_tests.py.
The following programs could switch to logging instead of print [1]
[1] $ find . -name "*.py" |xargs grep -v ^[[:space:]]*# \
|grep \ print\ |cut -d: -f 1 |sort -u
./testcases/Controllers/ODL/OpenDaylightTesting.py
./testcases/Controllers/ONOS/Sfc/Sfc_fun.py
./testcases/Controllers/ONOS/Sfc/Sfc.py
./testcases/Controllers/ONOS/Teston/adapters/client.py
./testcases/Controllers/ONOS/Teston/adapters/connection.py
./testcases/Controllers/ONOS/Teston/adapters/environment.py
./testcases/Controllers/ONOS/Teston/adapters/foundation.py
./testcases/OpenStack/vPing/vping_util.py
./testcases/security_scan/connect.py
./utils/functest_utils.py
./utils/functest_vacation.py
./utils/openstack_clean.py
JIRA: FUNCTEST-441
Change-Id: I7e9a888507f10352be7e85abd7f27dba4b1a7b53
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit d32ff56af10bcc15163d573a64970013242c689c)
-rwxr-xr-x | ci/exec_test.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ci/exec_test.sh b/ci/exec_test.sh index 7c4b3578e..deb505df9 100755 --- a/ci/exec_test.sh +++ b/ci/exec_test.sh @@ -39,6 +39,7 @@ fi FUNCTEST_REPO_DIR=${repos_dir}/functest FUNCTEST_CONF_DIR=/home/opnfv/functest/conf +export PYTHONUNBUFFERED=1 function odl_tests(){ keystone_ip=$(openstack catalog show identity |grep publicURL| cut -f3 -d"/" | cut -f1 -d":") |