From: Thierry Parmentelat Date: Sun, 13 Jul 2014 11:34:54 +0000 (+0200) Subject: fix for calling stuff on the guest side with the right personality X-Git-Tag: tests-5.3-7~2 X-Git-Url: http://git.onelab.eu/?p=tests.git;a=commitdiff_plain;h=dd5d5e99fe22b11fa9e2878172fd62515fd0b5bd fix for calling stuff on the guest side with the right personality --- diff --git a/system/TestPlc.py b/system/TestPlc.py index 01b6ee4..73c5c86 100644 --- a/system/TestPlc.py +++ b/system/TestPlc.py @@ -275,11 +275,14 @@ class TestPlc: # see e.g. plc_start esp. the version for f14 #command gets run in the plc's vm def host_to_guest(self,command): + vservername=self.vservername + personality=self.options.personality + raw="%(personality)s virsh -c lxc:/// lxc-enter-namespace %(vservername)s"%locals() # f14 still needs some extra help if self.options.fcdistro == 'f14': - raw="virsh -c lxc:/// lxc-enter-namespace %s -- /usr/bin/env PATH=/bin:/sbin:/usr/bin:/usr/sbin %s" %(self.vservername,command) + raw +=" -- /usr/bin/env PATH=/bin:/sbin:/usr/bin:/usr/sbin %(command)s" %locals() else: - raw="virsh -c lxc:/// lxc-enter-namespace %s -- /usr/bin/env %s" %(self.vservername,command) + raw +=" -- /usr/bin/env %(command)s"%locals() return raw # this /vservers thing is legacy...