invocation: support loading pytest module for pytest_name='x.y.z'

To make the naming of pytest more flexible, now LoadPytestModule
supports pytest_name containing dots. If pytest_name does not contain
any dot, will falls back to old implementation.
For example, we currently have a lot of ec_xxx tests, they can now become
  ec/    (pytest_name='ec.battery')
  ec/   (pytest_name='ec.lightbar')

TEST=test on DUT w/ old test list, run_pytest w/ and w/o goofy, make test

Change-Id: I3bc14cd8ea244d9febeaca8c4e8c6d7612984b8b
Commit-Ready: Wei-Han Chen <>
Tested-by: Wei-Han Chen <>
Reviewed-by: Hung-Te Lin <>
5 files changed