run_test.sh produces no output

Bug #1058429 reported by Adam Young
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Medium
Joseph Heck

Bug Description

nosetest runs fine.

run_test.sh does the build of the venv, but then provides no output.

I think that it is actually running the tests, just swallowing the output.

running with -x set in the bash line:

[ayoung@ayoung530 keystone]$ time ./run_tests.sh
+ set -eu
+ venv=.venv
+ with_venv=tools/with_venv.sh
+ always_venv=0
+ never_venv=0
+ force=0
+ noseargs=
+ noseopts=
+ wrapper=
+ just_pep8=0
+ no_pep8=0
+ coverage=0
+ nokeystoneclient=0
+ recreate_db=1
+ '[' 0 -eq 1 ']'
+ '[' 0 -eq 1 ']'
+ NOSETESTS='nosetests '
+ '[' 0 -eq 0 ']'
+ '[' 0 -eq 1 ']'
+ '[' -e .venv ']'
+ '[' 0 -eq 1 ']'
+ echo -e 'No virtual environment found...create one? (Y/n) \c'
No virtual environment found...create one? (Y/n) + read use_ve
n
+ '[' xn = xY -o xn = x -o xn = xy ']'
+ '[' 0 -eq 1 ']'
+ '[' 0 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ rm -f tests.sqlite
+ run_tests
+ nosetests

real 0m38.502s
user 0m30.031s
sys 0m2.430s

Nosetests runs with output of:

Ran 65 tests in 0.868s

So I think it is actually running the tests, but producing no output.

Joseph Heck (heckj)
Changed in keystone:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Joseph Heck (heckj) wrote :

interesting - tox is definitely showing the output, but I get the same results when I used ./run-tests.sh from the command-line. It was dumping the output in run_tests.log

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/13879

Changed in keystone:
assignee: nobody → Joseph Heck (heckj)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/13879
Committed: http://github.com/openstack/keystone/commit/1262a07277468dd48ba2167849fecf4c4766784b
Submitter: Jenkins
Branch: master

commit 1262a07277468dd48ba2167849fecf4c4766784b
Author: Joe Heck <email address hidden>
Date: Sat Sep 29 14:07:04 2012 -0700

    fixes bug 1058429

    remove redirect to logfile with updated test runner

    Change-Id: I27923e7c91fbe3c57adfae210467fffaf9f52d80

Changed in keystone:
status: In Progress → Fix Committed
Joseph Heck (heckj)
Changed in keystone:
milestone: none → grizzly-1
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: grizzly-1 → 2013.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.