aboutsummaryrefslogtreecommitdiff
path: root/tests/vm/basevm.py
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2021-06-02 11:35:27 +0100
committerAlex Bennée <alex.bennee@linaro.org>2021-06-07 14:42:47 +0100
commit7bb17a9263665c7cb0b93e6889e66bb62b9f71c1 (patch)
treeb8f2d68561ac8d79e88d814d2c92d23f2da20af8 /tests/vm/basevm.py
parente2d301780953dea5f0065bcfccf261c2bf3f7e98 (diff)
tests/vm: expose --source-path to scripts to find extra files
Currently the centos8 image expects to run an in-src build to find the kick starter file. Fix this. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20210602103527.32021-1-alex.bennee@linaro.org>
Diffstat (limited to 'tests/vm/basevm.py')
-rw-r--r--tests/vm/basevm.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py
index 0f2e436ed3..254e11c932 100644
--- a/tests/vm/basevm.py
+++ b/tests/vm/basevm.py
@@ -96,6 +96,7 @@ class BaseVM(object):
self._genisoimage = args.genisoimage
self._build_path = args.build_path
self._efi_aarch64 = args.efi_aarch64
+ self._source_path = args.source_path
# Allow input config to override defaults.
self._config = DEFAULT_CONFIG.copy()
if config != None:
@@ -591,6 +592,9 @@ def parse_args(vmcls):
parser.add_argument("--build-path", default=None,
help="Path of build directory, "\
"for using build tree QEMU binary. ")
+ parser.add_argument("--source-path", default=None,
+ help="Path of source directory, "\
+ "for finding additional files. ")
parser.add_argument("--interactive", "-I", action="store_true",
help="Interactively run command")
parser.add_argument("--snapshot", "-s", action="store_true",