提交 36836d00 编写于 作者: L Lucas Meneghel Rodrigues

tests: image_copy - Fix undefined variable error

Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 581302ce
......@@ -37,7 +37,7 @@ def run_image_copy(test, params, env):
dst_path = '%s/%s.%s' % (data_dir.get_data_dir(), params['image_name'], params['image_format'])
pwd = os.path.join(test.bindir, "images")
if params.get("rename_error_image", "no") == "yes":
error_image = os.path.basename(image_name) + "-error"
error_image = os.path.basename(params['image_name']) + "-error"
error_image += '.' + params['image_format']
error_dst_path = os.path.join(pwd, error_image)
mv_cmd = "/bin/mv %s %s" % (dst_path, error_dst_path)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册