diff --git a/mozilla/tools/tinderbox/report-http-status.pl b/mozilla/tools/tinderbox/report-http-status.pl index fcc6f4e640d..cc776a3ccee 100755 --- a/mozilla/tools/tinderbox/report-http-status.pl +++ b/mozilla/tools/tinderbox/report-http-status.pl @@ -71,9 +71,14 @@ sub is_http_alive() { { my $alive_time = 0; # Hours http has been up. my $alive = 0; - my $timefile = "$script_dir/http_alive_timefile.$ARGV[0]"; + my $timefile = "$script_dir/http_alive_timefiles/$ARGV[0]"; + # make sure directory exists + unless (-d $timefile) { + mkdir "$script_dir/http_alive_timefiles"; + } + PrintUsage() if $#ARGV == -1; $alive = is_http_alive();