[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 05/13] TestSupport: Break out target_jobdir
No functional change. Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> --- Osstest/BuildSupport.pm | 6 +----- Osstest/TestSupport.pm | 8 ++++++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Osstest/BuildSupport.pm b/Osstest/BuildSupport.pm index 9a43f00..d5fb677 100644 --- a/Osstest/BuildSupport.pm +++ b/Osstest/BuildSupport.pm @@ -66,11 +66,7 @@ sub builddirsprops { my (%xbuildopts) = @_; $xbuildopts{DefMakeFlags} ||= '-j4'; - - my $leaf= "build.$flight.$job"; - my $homedir = get_host_property($ho, 'homedir', '/home/osstest'); - $builddir= "$homedir/$leaf"; - + $builddir= target_jobdir($ho); $makeflags= get_host_property($ho, 'build make flags', $xbuildopts{DefMakeFlags}); } diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 49bb175..96454d3 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -58,6 +58,7 @@ BEGIN { target_editfile_root target_file_exists target_run_apt target_install_packages target_install_packages_norec + target_jobdir target_extract_jobdistpath target_guest_lv_name poll_loop tcpconnect await_tcp @@ -1706,6 +1707,13 @@ END return $console; } +sub target_jobdir ($) { + my ($ho) = @_; + my $leaf= "build.$flight.$job"; + my $homedir = get_host_property($ho, 'homedir', '/home/osstest'); + return "$homedir/$leaf"; +} + sub target_extract_jobdistpath ($$$$$) { my ($ho, $part, $path, $job, $distpath) = @_; $distpath->{$part}= get_stashed($path, $job); -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |