Yes,
This is why I usually run using tests/gem5 as root directory
./tests/main.py [...] \
tests/gem5 <- root directory
Testlib is basically trying to load every python file it finds on its walk.
We should definitely add python unit tests to our presubmit runs IMHO. The
simplest way is via unittest Test Discovery [1]
Kind Regards
Giacomo
[1]: https://docs.python.org/3/library/unittest.html#unittest-test-discovery
> -----Original Message-----
> From: Bobby Bruce via gem5-dev <[email protected]>
> Sent: 19 April 2021 13:43
> To: gem5 Developer List <[email protected]>
> Cc: Gabe Black <[email protected]>; Bobby Bruce
> <[email protected]>
> Subject: [gem5-dev] Re: error from new test_convert.py?
>
> The exception being thrown is "No module named 'm5'". m5 is not in the
> path, but could easily be added.
>
> From looking at https://gem5-
> review.googlesource.com/c/public/gem5/+/39377, this was never intended
> to be run via `main.py`, though "test_convert.py" has the "test" prefix so our
> TestLib framework tries to run it anyway.
>
> My questions are: when were these tests meant to be run? Should they be
> incorporated into the TestLib (i.e. those tests run via `main.py`) to be run
> as a
> Presubmit, Nightly, or Weekly test? This would be easy to do (I think I could
> incorporate this relatively quickly).
>
> Kind regards,
> Bobby
>
> --
>
> Dr. Bobby R. Bruce
> Room 2235,
> Kemper Hall, UC Davis
> Davis,
> CA, 95616
>
>
> web: https://www.bobbybruce.net
>
>
>
> On Sun, Apr 18, 2021 at 9:35 PM Gabe Black via gem5-dev <gem5-
> [email protected] <mailto:[email protected]> > wrote:
>
>
> Hi gem5 devs, specifically Andreas. I was just running the regressions
> on a change I'm working on, and I noticed this message:
>
> Exception thrown while loading
> "/home/gblack/gem5/work/tests/pyunit/util/test_convert.py"
> Ignoring all tests in this file.
>
> FYI, it looks like these tests are not runnng...
> _______________________________________________
> gem5-dev mailing list -- [email protected] <mailto:gem5-
> [email protected]>
> To unsubscribe send an email to [email protected]
> <mailto:[email protected]>
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
IMPORTANT NOTICE: The contents of this email and any attachments are
confidential and may also be privileged. If you are not the intended recipient,
please notify the sender immediately and do not disclose the contents to any
other person, use it for any purpose, or store or copy the information in any
medium. Thank you.
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s