From: jiegec Date: Sun, 15 Mar 2020 06:38:07 +0000 (+0800) Subject: tests: Use relative path for python3 compliance X-Git-Tag: v20.0.0.0~314 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dfbef4b1f560cda56bcbffaf3626775ffc7003ac;p=gem5.git 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 --- 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__), "..")