From 394cecd3d50953b991d80497fd1430656eede067 Mon Sep 17 00:00:00 2001 From: Gustavo De Nardin Date: Tue, 4 Aug 2009 21:22:42 +0000 Subject: Save the remote bot command output to botcmd.log in the remote log dir. So it will be fetched with the rest of the logs in case of build failure. --- ulri | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ulri b/ulri index c9f2990..e585013 100755 --- a/ulri +++ b/ulri @@ -635,7 +635,8 @@ foreach my $prefix (sort keys %pkg_tree) { # Copy packages to build node # - next if ssh($remote, "mkdir -p $prefix_dir"); + # create also the log dir for botcmd.log + next if ssh($remote, "mkdir -p $prefix_dir/log"); my $pkgs = ""; my $ok = 1; foreach my $srpm (@$srpms) { @@ -673,7 +674,7 @@ foreach my $prefix (sort keys %pkg_tree) { $cmd =~ s!__MEDIA__!$media_to_add!g; plog('DEBUG', "Build $pkgs"); - ssh($remote, "$cmd $pkgs > $temp &"); + ssh($remote, "'$cmd $pkgs | tee $prefix_dir/log/botcmd.log' > $temp &"); # wait 10 seconds or until we have the log file # plus 20 seconds if it timeouts. -- cgit v1.2.1