diff mbox

[v7,11/20] osstest: introduce an OS $ho field

Message ID 20170725150032.9225-2-roger.pau@citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Roger Pau Monné July 25, 2017, 3 p.m. UTC
In order to differentiate between FreeBSD and Debian hosts.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
---
Changes since v6:
 - New in this version
---
 Osstest/TestSupport.pm | 1 +
 1 file changed, 1 insertion(+)

Comments

Ian Jackson July 25, 2017, 3:13 p.m. UTC | #1
Roger Pau Monne writes ("[PATCH v7 11/20] osstest: introduce an OS $ho field"):
> In order to differentiate between FreeBSD and Debian hosts.
...
> +        $ho->{Os} = target_var($ho, "os") // "debian";

I will change this to "OS" when committing, if you don't first.

Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
diff mbox

Patch

diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm
index ce475d81..7642a95b 100644
--- a/Osstest/TestSupport.pm
+++ b/Osstest/TestSupport.pm
@@ -983,6 +983,7 @@  sub selecthost ($) {
 	$ho->{Suite} = target_var($ho, "suite") // $c{DebianSuite};
 	$ho->{DiVersion} = target_var($ho, "di_version")
 	    // cfg_tftp_di_version($ho->{Suite});
+        $ho->{Os} = target_var($ho, "os") // "debian";
     }
 
     #----- handle hosts which are themselves guests (nested) -----