Fix variable reference

This commit is contained in:
Pedro Algarvio 2016-05-09 01:24:34 +01:00
parent 7a8460856c
commit f69dc8ef7f
No known key found for this signature in database
GPG Key ID: BB36BF6584A298FF

View File

@ -1701,10 +1701,10 @@ class ShellCase(AdaptedConfigurationTestCaseMixIn, ShellTestCase):
'''
Return the path to a testing runtime script
'''
if not os.path.isdir(RUNTIME_VARS.TMP_SCRIPT_DIR):
os.makedirs(RUNTIME_VARS.TMP_SCRIPT_DIR)
if not os.path.isdir(TMP_SCRIPT_DIR):
os.makedirs(TMP_SCRIPT_DIR)
script_path = os.path.join(RUNTIME_VARS.TMP_SCRIPT_DIR, script_name)
script_path = os.path.join(TMP_SCRIPT_DIR, script_name)
if not os.path.isfile(script_path):
log.debug('Generating {0}'.format(script_path))