From dfbef4b1f560cda56bcbffaf3626775ffc7003ac Mon Sep 17 00:00:00 2001 From: jiegec Date: Sun, 15 Mar 2020 14:38:07 +0800 Subject: [PATCH] tests: Use relative path for python3 compliance Change-Id: Ie18c52982e2083d0fc2723147f2493b39bcb3786 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/26743 Reviewed-by: Jason Lowe-Power Reviewed-by: Bobby R. Bruce Maintainer: Bobby R. Bruce Tested-by: kokoro --- tests/testing/tests.py | 2 +- tests/testing/units.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/testing/tests.py b/tests/testing/tests.py index 98c9a660a..29bfa78b6 100755 --- a/tests/testing/tests.py +++ b/tests/testing/tests.py @@ -38,7 +38,7 @@ from abc import ABCMeta, abstractmethod import os from collections import namedtuple -from units import * +from .units import * from .helpers import FileIgnoreList from .results import TestResult import shutil diff --git a/tests/testing/units.py b/tests/testing/units.py index 0139b31b8..9c9c1e5bf 100644 --- a/tests/testing/units.py +++ b/tests/testing/units.py @@ -45,8 +45,8 @@ import subprocess import sys import traceback -from results import UnitResult -from helpers import * +from .results import UnitResult +from .helpers import * _test_base = os.path.join(os.path.dirname(__file__), "..") -- 2.30.2