Files
pve-storage/test/run_plugin_tests.pl
Fabian Grünbichler aa738ee355 test: force ctime to UTC
otherwise this test fails depending on TZ of the testing system

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2020-05-04 11:10:56 +02:00

22 lines
457 B
Perl
Executable File

#!/usr/bin/perl
use strict;
use warnings;
# to ensure consistent ctime values on all systems
$ENV{TZ} = 'UTC';
use TAP::Harness;
my $harness = TAP::Harness->new( { verbosity => -1 });
my $res = $harness->runtests(
"archive_info_test.pm",
"parse_volname_test.pm",
"list_volumes_test.pm",
"path_to_volume_id_test.pm",
"get_subdir_test.pm",
"filesystem_path_test.pm",
);
exit -1 if !$res || $res->{failed} || $res->{parse_errors};