tests: fix name collisions in verifier.py
authorHoa Nguyen <hoanguyen@ucdavis.edu>
Wed, 29 Jul 2020 21:55:31 +0000 (14:55 -0700)
committerHoa Nguyen <hoanguyen@ucdavis.edu>
Thu, 30 Jul 2020 18:34:32 +0000 (18:34 +0000)
commit9a250990cccaca49609ffab96ac1fd80ffa7445a
treebb38433f0c92b11ada56b4072bbdae5d3868337f
parentdf1324b999fe8f528401455562a35abc5b2aa212
tests: fix name collisions in verifier.py

In verifier.py, testlib.test_util is imported and renamed to 'test',
while several functions in the file have a subfunction named 'test()',
which causes test.fail() to fail as 'test' points to the
subfunction instead of the module.

This commit addresses the above issue by keeping the imported module
as test_util instead of renaming it to test.

Signed-off-by: Hoa Nguyen <hoanguyen@ucdavis.edu>
Change-Id: I0ab7b52619f2fa9495e9a6ff8d469c022eea98bc
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/31994
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
tests/gem5/verifier.py