Skip to content

Commit

Permalink
Merge pull request #2778 from Martchus/misc-improvements
Browse files Browse the repository at this point in the history
Polish scheduler fullstack test and worker log
  • Loading branch information
okurz committed Feb 26, 2020
2 parents 0898d57 + 05a2624 commit 5ecec67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions lib/OpenQA/Worker/Job.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1159,8 +1159,7 @@ sub _read_json_file {
local $/;
my $fh;
if (!open($fh, '<', $fn)) {
log_warning("Can't open $fn for result upload - likely isotovideo "
. "could not be started or failed early. Error message: $!");
log_debug("Unable to read $name: $!");
return undef;
}
my $json = {};
Expand Down
5 changes: 2 additions & 3 deletions t/05-scheduler-full.t
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,11 @@ use Mojo::IOLoop::Server;
use Mojo::File 'tempfile';
use Time::HiRes 'sleep';
use OpenQA::Test::Utils qw(
create_webapi wait_for_worker setup_share_dir
create_websocket_server create_scheduler
create_webapi wait_for_worker setup_share_dir create_websocket_server
kill_service unstable_worker client_output unresponsive_worker
);
use Mojolicious;
use File::Path qw(make_path remove_tree);
use File::Path 'make_path';
use DateTime;
# This test has to be treated like fullstack.
plan skip_all => "set SCHEDULER_FULLSTACK=1 (be careful)" unless $ENV{SCHEDULER_FULLSTACK};
Expand Down

0 comments on commit 5ecec67

Please sign in to comment.