Commit 05c99e4c authored by Brandon Walts's avatar Brandon Walts Committed by ens-bwalts

[ENSCORESW-3350] update expected output in lsf.t to conform to Meadow/LSF.pm date guessing in 2020

parent 68ee32fb
......@@ -149,7 +149,7 @@ lives_ok( sub {
my $expected_bacct = {
'2581807[1]' => {
'died' => '2015-11-26 14:25:12',
'died' => '2020-11-26 14:25:12',
'pending_sec' => '147',
'exception_status' => 'underrun',
'cause_of_death' => undef,
......@@ -160,7 +160,7 @@ my $expected_bacct = {
'swap_megs' => 144
},
'2581801[48]' => {
'died' => '2015-11-26 14:25:16',
'died' => '2020-11-26 14:25:16',
'pending_sec' => '196',
'exception_status' => 'underrun',
'mem_megs' => 50,
......@@ -176,7 +176,7 @@ my $expected_bacct = {
'pending_sec' => '2',
'exception_status' => 'underrun',
'swap_megs' => 218,
'died' => '2015-12-02 13:53:29',
'died' => '2020-12-02 13:53:29',
'cause_of_death' => 'MEMLIMIT',
'exit_status' => 'exit/TERM_MEMLIMIT',
'mem_megs' => 102
......@@ -191,8 +191,8 @@ lives_and( sub {
}, 'Can call bacct on process_ids');
lives_and( sub {
local $ENV{EHIVE_EXPECTED_BACCT} = '-l -C 2015/10/11/12:23,2015/12/12/23:58 -u kb3';
my $h = $lsf_meadow->get_report_entries_for_time_interval('2015-10-11 12:23:45', '2015-12-12 23:56:59', 'kb3');
local $ENV{EHIVE_EXPECTED_BACCT} = '-l -C 2020/10/11/12:23,2020/12/12/23:58 -u kb3';
my $h = $lsf_meadow->get_report_entries_for_time_interval('2020-10-11 12:23:45', '2020-12-12 23:56:59', 'kb3');
is_deeply($h, $expected_bacct, 'Got bacct output');
}, 'Can call bacct on a date range');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment