]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Tests/TestTools.py
BaseTools/Tests: Always add BaseTools source to import path
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 23 Jun 2015 23:34:04 +0000 (23:34 +0000)
committerjljusten <jljusten@Edk2>
Tue, 23 Jun 2015 23:34:04 +0000 (23:34 +0000)
commit53fc4ba26640fd5aab0b7480068295e72c42d435
tree8874a521d024cafcc6cd080b33e6c7220990e1ac
parent94210dc95e9f7c6ff4066a9b35a288e6f1c271bf
BaseTools/Tests: Always add BaseTools source to import path

This allows unit tests to easily include BaseTools python
modules. This is very useful for writing unit tests.

Actually, previously, we would do this when RunTests.py was executed,
so unit tests could easily import BaseTools modules, so long as they
were executed via RunTests.

This change allows running the unit test files individually which can
be faster for developing the new unit test cases.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Yingke Liu <yingke.d.liu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17691 6f19259b-4bc3-4df7-8a09-765794883524
BaseTools/Tests/RunTests.py
BaseTools/Tests/TestTools.py