From: Uri Lublin <[email protected]> If the user specify a directory for the source (srcdir) it makes sense that buildir would reside in the same directory.
This is useful for server dispatched client tests, as without this patch one would have to re-install kvm for every job. Note: this works for most used modes (kvm sources), including git, snapshot and release. It may not work (meaning buildir will not be next to srcdir) for e.g. localsrc. Signed-off-by: Uri Lublin <[email protected]> diff --git a/client/tests/kvm_runtest_2/kvm_install.py b/client/tests/kvm_runtest_2/kvm_install.py index 843a621..6d8fcb2 100755 --- a/client/tests/kvm_runtest_2/kvm_install.py +++ b/client/tests/kvm_runtest_2/kvm_install.py @@ -228,7 +228,10 @@ def __load_kvm_modules(): def __install_kvm(test, srcdir): # create destination dir - kvm_build_dir = os.path.join(test.bindir, "build") + + kvm_build_dir = os.path.join(srcdir, '..', '..', 'build') + kvm_build_dir = os.path.abspath(kvm_build_dir) + if not os.path.exists(kvm_build_dir): os.mkdir(kvm_build_dir) -- To unsubscribe from this list: send the line "unsubscribe kvm-commits" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
