tests: Use relative path for python3 compliance
authorjiegec <noc@jiegec.ac.cn>
Sun, 15 Mar 2020 06:38:07 +0000 (14:38 +0800)
committerJiajie Chen <wiadufachen@gmail.com>
Wed, 18 Mar 2020 01:51:10 +0000 (01:51 +0000)
Change-Id: Ie18c52982e2083d0fc2723147f2493b39bcb3786
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/26743
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
tests/testing/tests.py
tests/testing/units.py

index 98c9a660a17ccc1f37f498ebd0344033a88cae81..29bfa78b6682cad01ece93cd5550dccda33b243b 100755 (executable)
@@ -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
index 0139b31b8e32617177801a7becaa939d28bcb5ba..9c9c1e5bf418841b348e30a5a9035a274ce93e76 100644 (file)
@@ -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__), "..")