From 2826985dd9dcf49f2507fbabeacefbd656692df1 Mon Sep 17 00:00:00 2001 From: Roger Pau Monne Date: Wed, 13 Jun 2018 09:40:13 +0200 Subject: [PATCH] osstest: introduce build helpers for FreeBSD MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Some steps of the FreeBSD build process need to be done as root, so introduce some helpers to perform those steps: buildcmd_stamped_logged_root and target_cmd_build_root. They behave exactly the same as the non-root counterparts. Signed-off-by: Roger Pau Monné Acked-by: Ian Jackson --- Changes since v3: - New in this version. --- Osstest/BuildSupport.pm | 26 ++++++++++++++++++++++---- Osstest/TestSupport.pm | 27 +++++++++++++++++++++++---- 2 files changed, 45 insertions(+), 8 deletions(-) diff --git a/Osstest/BuildSupport.pm b/Osstest/BuildSupport.pm index 4c2b658..b96ce76 100644 --- a/Osstest/BuildSupport.pm +++ b/Osstest/BuildSupport.pm @@ -36,7 +36,7 @@ BEGIN { $whhost $ho builddirsprops - buildcmd_stamped_logged + buildcmd_stamped_logged buildcmd_stamped_logged_root $builddir $makeflags $buildcmd_global_prefix @@ -60,9 +60,9 @@ our ($xendist); our $buildcmd_global_prefix //= ''; -sub buildcmd_stamped_logged ($$$$$$) { - my ($timeout, $component, $stampname, $prefix, $cmd, $suffix) = @_; - target_cmd_build($ho, $timeout, $builddir, <