Re: [rhinstaller/anaconda/pulls/314 master] Add test documentation
by dashea
> @@ -21,6 +21,12 @@
> # documentation root, use os.path.abspath to make it absolute, like shown here.
> sys.path.insert(0, os.path.abspath('..'))
>
> +# configuration required to import test modules
> +for path in ["../pyanaconda/isys/.libs", "../pyanaconda", "../tests", "../tests/lib", "../dracut", "../widgets"]:
I'm not sure if these "raw" (non-prefixed) relative paths are a good way to go. Or do they work the same no matter which directory you run the sphinx stuff from?
--
To view this pull request on github, visit https://github.com/rhinstaller/anaconda/pull/314#discussion_r37722396
8 years, 9 months
[PATCH] Preserve coverage results from running the kickstart_tests.
by Chris Lumens
This works the same as all the other logs from those tests. If you
don't use "-k 1", they'll be discarded. If you want to combine them
together into one giant report to see how much kickstart_tests covers,
you can do that. If you want to generate reports for each individual
test to see how much overlap there is, you can do that too.
Those decisions probably belong elsewhere, though. We just need to be
collecting the data for now.
---
tests/kickstart_tests/functions.sh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tests/kickstart_tests/functions.sh b/tests/kickstart_tests/functions.sh
index 04422db..38ea8f2 100644
--- a/tests/kickstart_tests/functions.sh
+++ b/tests/kickstart_tests/functions.sh
@@ -19,7 +19,7 @@
# Red Hat Author(s): Chris Lumens <clumens(a)redhat.com>
kernel_args() {
- echo vnc
+ echo vnc debug=1
}
prepare() {
@@ -40,6 +40,10 @@ validate() {
disksdir=$1
args=$(for d in ${disksdir}/disk-*img; do echo -a ${d}; done)
+ # Grab the coverage results out of the installed system while it still
+ # exists.
+ virt-copy-out ${args} /root/anaconda.coverage ${disksdir}
+
# There should be a /root/RESULT file with results in it. Check
# its contents and decide whether the test finally succeeded or
# not.
--
2.4.3
8 years, 9 months