[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [TCK] [PATCH] Switch to installation of FC14 image and other fixes



On 05/06/2011 10:39 AM, Stefan Berger wrote:
Signed-off-by: Stefan Berger<stefanb linux vnet ibm com>

---
  conf/default.cfg                          |   12 ++--
  conf/ks.cfg                               |    3 -
  lib/Sys/Virt/TCK/NetworkHelpers.pm        |   84 +++++++++++++++++++++++++++---
  scripts/nwfilter/090-install-image.t      |   11 ++-
  scripts/nwfilter/100-ping-still-working.t |    5 -
  scripts/nwfilter/210-no-mac-spoofing.t    |    5 -
  scripts/nwfilter/220-no-ip-spoofing.t     |    5 -
  scripts/nwfilter/230-no-mac-broadcast.t   |    5 -
  scripts/nwfilter/240-no-arp-spoofing.t    |    5 -
  scripts/nwfilter/300-vsitype.t            |    3 -
  10 files changed, 104 insertions(+), 34 deletions(-)

Index: libvirt-tck/lib/Sys/Virt/TCK/NetworkHelpers.pm
===================================================================
--- libvirt-tck.orig/lib/Sys/Virt/TCK/NetworkHelpers.pm
+++ libvirt-tck/lib/Sys/Virt/TCK/NetworkHelpers.pm
@@ -11,12 +11,76 @@ sub get_first_macaddress {

  sub get_ip_from_leases{
      my $mac = shift;
-    my $tmp = `grep $mac /var/lib/dnsmasq/dnsmasq.leases`;
+    my $leasefile = `ps x | sed -n "s/.*dnsmasq.*default.*dhcp-leasefile=\\([/.[:alnum:]]*\\).*/\\1/p"`;

above should be a 'ps ax'...



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]