[Piglit] [PATCH 06/18] programs_tests.py: Fix get_config() finds $HOME/.config/piglit.conf

Dylan Baker baker.dylan.c at gmail.com
Tue Aug 19 13:25:00 PDT 2014


This is a stupid bug, the test doesn't actually call the function to be
tested. Adding the function to actually test fixes the issue.

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 framework/tests/programs_tests.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/framework/tests/programs_tests.py b/framework/tests/programs_tests.py
index 1fe2227..1739f3f 100644
--- a/framework/tests/programs_tests.py
+++ b/framework/tests/programs_tests.py
@@ -80,9 +80,10 @@ class TestGetConfigHomeFallback(utils.TestWithEnvClean):
             os.mkdir(os.path.join(tdir, '.config'))
             with open(os.path.join(tdir, '.config/piglit.conf'), 'w') as f:
                 f.write(CONF_FILE)
+            core.get_config()
 
         nt.ok_(core.PIGLIT_CONFIG.has_section('nose-test'),
-               msg='$HOME/.config not found')
+               msg='$HOME/.config/piglit.conf not found')
 
 
 class TestGetConfigLocal(utils.TestWithEnvClean):
-- 
2.0.4



More information about the Piglit mailing list