Since at the moment osstest only builds FreeBSD on FreeBSD, there are
no dependencies to install. Just mark the host as ready to share.

Signed-off-by: Roger Pau Monné <roger....@citrix.com>
---
 ts-build-prep-freebsd   | 37 +++++++++++++++++++++++++++++++++++++
 ts-freebsd-host-install |  3 ---
 2 files changed, 37 insertions(+), 3 deletions(-)
 create mode 100755 ts-build-prep-freebsd

diff --git a/ts-build-prep-freebsd b/ts-build-prep-freebsd
new file mode 100755
index 00000000..1d78a3e1
--- /dev/null
+++ b/ts-build-prep-freebsd
@@ -0,0 +1,37 @@
+#!/usr/bin/perl -w
+# This is part of "osstest", an automated testing framework for Xen.
+# Copyright (C) 2017 Citrix Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+use strict qw(vars);
+use DBI;
+use POSIX;
+
+unshift @INC, qw(.);
+use Osstest;
+use Osstest::TestSupport;
+
+tsreadconfig();
+
+our ($whhost) = @ARGV;
+$whhost ||= 'host';
+our $ho= selecthost($whhost);
+exit 0 if $ho->{SharedReady};
+
+our $path_prefix = $r{"freebsd_distpath"} ||
+                   get_stashed("path_freebsddist", $r{"freebsdbuildjob"});
+
+host_shared_mark_ready($ho, "build-freebsd-".
+                            sha256file("$path_prefix/install.img", 16));
diff --git a/ts-freebsd-host-install b/ts-freebsd-host-install
index 735f7ff0..447a5076 100755
--- a/ts-freebsd-host-install
+++ b/ts-freebsd-host-install
@@ -278,6 +278,3 @@ setup_netboot_local($ho);
 
 # Proceed with the install
 install();
-
-host_shared_mark_ready($ho, "build-freebsd-".
-                            sha256file("$path_prefix/install.img", 16));
-- 
2.13.5 (Apple Git-94)


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

Reply via email to