From 93ac2b1919e908d701b3bb922531c85fc188c475 Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Wed, 13 Aug 2003 22:21:13 +0000 Subject: [PATCH] Print output of profile creation. Print all arguments to commands, not just the filename. b=215331 r=bryner --- tools/tinderbox/build-seamonkey-util.pl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/tinderbox/build-seamonkey-util.pl b/tools/tinderbox/build-seamonkey-util.pl index 157fbff039bb..4ef2f82ee3ed 100644 --- a/tools/tinderbox/build-seamonkey-util.pl +++ b/tools/tinderbox/build-seamonkey-util.pl @@ -23,7 +23,7 @@ use Config; # for $Config{sig_name} and $Config{sig_num} use File::Find (); use File::Copy; -$::UtilsVersion = '$Revision: 1.245 $ '; +$::UtilsVersion = '$Revision: 1.246 $ '; package TinderUtils; @@ -925,9 +925,11 @@ sub rebootSystem { # Create a profile named $Settings::MozProfileName in the normal $build_dir place. sub create_profile { my ($build_dir, $binary_dir, $binary) = @_; + my $profile_log = "$build_dir/create-profile.log"; my $result = run_cmd($build_dir, $binary_dir, [$binary, "-CreateProfile", $Settings::MozProfileName], - "/dev/null", $Settings::CreateProfileTimeout); + $profile_log, $Settings::CreateProfileTimeout); + print_logfile($profile_log, "Profile Creation"); return $result; } @@ -1281,7 +1283,7 @@ sub run_cmd { my $now = localtime(); print_log "Begin: $now\n"; - print_log "cmd = @$args[0]\n"; + print_log "cmd = " . join(' ', @{$args}) . "\n"; my $pid = fork_and_log($home_dir, $binary_dir, $args, $logfile); my $result = wait_for_pid($pid, $timeout_secs);