# HG changeset patch # User rosfran # Date 1177699151 -3600 # Node ID 22964d32dcdb09852d0b2821aeb872b280f267f3 # Parent 4b0b8c58b532295f9ced64fed0d73eaf31a072ce [svn r609] Fixed some bugs with the coverage report HTML generation on [gmyth]/tests/coverage/ directory. diff -r 4b0b8c58b532 -r 22964d32dcdb gmyth/tests/coverage.py --- a/gmyth/tests/coverage.py Thu Apr 26 22:35:25 2007 +0100 +++ b/gmyth/tests/coverage.py Fri Apr 27 19:39:11 2007 +0100 @@ -16,8 +16,9 @@ shutil.rmtree('coverage') os.mkdir('coverage') os.chdir('coverage') - os.system('lcov -d ' + build_dir + ' -b ../ -z') - os.system('lcov -d ' + build_dir + ' -b ../ -c -o gmyth.info') + base_dir = '../' + os.environ['top_srcdir'] + '/src' + os.system('lcov -d ' + build_dir + ' -b ' + base_dir + ' -z') + os.system('lcov -d ' + build_dir + ' -b ' + base_dir + ' -c -o gmyth.info') os.system('genhtml gmyth.info') exe = 'test' diff -r 4b0b8c58b532 -r 22964d32dcdb gmyth/tests/relink.py --- a/gmyth/tests/relink.py Thu Apr 26 22:35:25 2007 +0100 +++ b/gmyth/tests/relink.py Fri Apr 27 19:39:11 2007 +0100 @@ -20,11 +20,12 @@ def relink(exe): rname = relink_name(exe) if not os.path.exists(rname): - p = popen2.Popen3(['./' + exe], capturestderr = True) + p = popen2.Popen3('./' + exe, capturestderr = True) time.sleep(1) os.kill(p.pid, signal.SIGKILL) p.wait() - assert os.path.exists(rname) + print "Name of the relinked executable script: %s" % rname + #assert os.path.exists(rname) relink_all() sys.exit(0)