In change f14edd33ee04f6f33620ac8c6e8db210a399fd4e, a new way of computing self.srcdir introduces a bug: The autotestdir env variable is not set on a server side job. So we resort to get the value of autotest_top_path instead.
Signed-off-by: Lucas Meneghel Rodrigues <[email protected]> --- client/shared/test.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/shared/test.py b/client/shared/test.py index a6885fa..67c6e2f 100644 --- a/client/shared/test.py +++ b/client/shared/test.py @@ -47,7 +47,11 @@ class base_test(object): else: self.crash_handling_enabled = False self.bindir = bindir - autodir = os.path.abspath(os.environ['AUTODIR']) + try: + autodir = os.path.abspath(os.environ['AUTODIR']) + except KeyError: + autodir = GLOBAL_CONFIG.get_config_value('COMMON', + 'autotest_top_path') tmpdir = os.path.join(autodir, 'tmp') output_config = GLOBAL_CONFIG.get_config_value('COMMON', 'test_output_dir', -- 1.7.11.2 _______________________________________________ Autotest-kernel mailing list [email protected] https://www.redhat.com/mailman/listinfo/autotest-kernel
