aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-10-11 10:43:36 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-10-11 10:50:26 +0200
commitb14087d92f6c5d2430f97902e84d7f24027044bc (patch)
tree60ee874b499ceec9fb3eeaded8fc45084d6ad3ca /t
parent5dad5637e0b624568adac81feaafcca418b9d502 (diff)
downloadiurt-b14087d92f6c5d2430f97902e84d7f24027044bc.tar
iurt-b14087d92f6c5d2430f97902e84d7f24027044bc.tar.gz
iurt-b14087d92f6c5d2430f97902e84d7f24027044bc.tar.bz2
iurt-b14087d92f6c5d2430f97902e84d7f24027044bc.tar.xz
iurt-b14087d92f6c5d2430f97902e84d7f24027044bc.zip
perl_checker cleanups
Diffstat (limited to 't')
-rw-r--r--t/emi_finisher.t8
-rw-r--r--t/emi_mandatory.t12
-rw-r--r--t/emi_non_mandatory.t4
3 files changed, 12 insertions, 12 deletions
diff --git a/t/emi_finisher.t b/t/emi_finisher.t
index 8bfed63..c34ce2a 100644
--- a/t/emi_finisher.t
+++ b/t/emi_finisher.t
@@ -72,9 +72,9 @@ my %pkg_tree = (
my %targets = find_prefixes_ready_to_upload($config, %pkg_tree);
-is($targets{'cauldron'}{'core/release'}{'arch_finisher'}{'i586'}, '20160113183431.nobody.valstar.23515');
-is($targets{'cauldron'}{'core/release'}{'arch_finisher'}{'x86_64'}, '20160113183431.nobody.valstar.23515');
-is($targets{'cauldron'}{'core/release'}{'arch_finisher'}{'armv5tl'}, '20160113183432.nobody.valstar.23515');
-ok(!$targets{'cauldron'}{'core/release'}{'arch_finisher'}{'noarch'});
+is($targets{cauldron}{'core/release'}{arch_finisher}{i586}, '20160113183431.nobody.valstar.23515');
+is($targets{cauldron}{'core/release'}{arch_finisher}{x86_64}, '20160113183431.nobody.valstar.23515');
+is($targets{cauldron}{'core/release'}{arch_finisher}{armv5tl}, '20160113183432.nobody.valstar.23515');
+ok(!$targets{cauldron}{'core/release'}{arch_finisher}{noarch});
done_testing();
diff --git a/t/emi_mandatory.t b/t/emi_mandatory.t
index ce0a54b..49c3d0a 100644
--- a/t/emi_mandatory.t
+++ b/t/emi_mandatory.t
@@ -9,7 +9,7 @@ use Iurt::Emi;
my $config = { mandatory_arch => ['i586', 'x86_64'] };
my %pkg_tree = (
'20160113183431.nobody.valstar.23515' => {
- 'target' => 'cauldron',
+ 'target' => cauldron,
'media' => {
'core/release' => {
'done_arch' => {
@@ -31,7 +31,7 @@ my %pkg_tree = (
]
},
'20160113183432.nobody.valstar.23515' => {
- 'target' => 'cauldron',
+ 'target' => cauldron,
'media' => {
'core/release' => {
'done_arch' => {
@@ -58,7 +58,7 @@ my %pkg_tree = (
]
},
'20160113183433.nobody.valstar.23515' => {
- 'target' => 'cauldron',
+ 'target' => cauldron,
'media' => {
'core/release' => {
'done_arch' => {
@@ -87,8 +87,8 @@ my %pkg_tree = (
my %targets = find_prefixes_ready_to_upload($config, %pkg_tree);
# 20160113183431.nobody.valstar.23515 is not ready to upload, mandatory arch i586 is missing
-ok(!('20160113183431.nobody.valstar.23515' ~~ @{$targets{'cauldron'}{'core/release'}{'to_upload'}}), 'mandatory architecture missing');
+ok(!('20160113183431.nobody.valstar.23515' ~~ @{$targets{cauldron}{'core/release'}{to_upload}}), 'mandatory architecture missing');
# 20160113183432.nobody.valstar.23515 is ready to upload, all arches are present
-ok('20160113183432.nobody.valstar.23515' ~~ @{$targets{'cauldron'}{'core/release'}{'to_upload'}}, 'all mandatory architectures present');
+ok('20160113183432.nobody.valstar.23515' ~~ @{$targets{cauldron}{'core/release'}{to_upload}}, 'all mandatory architectures present');
# 20160113183433.nobody.valstar.23515 is ready to upload, i586 is excluded
-ok('20160113183433.nobody.valstar.23515' ~~ @{$targets{'cauldron'}{'core/release'}{'to_upload'}}, 'mandatory architecture excluded');
+ok('20160113183433.nobody.valstar.23515' ~~ @{$targets{cauldron}{'core/release'}{to_upload}}, 'mandatory architecture excluded');
diff --git a/t/emi_non_mandatory.t b/t/emi_non_mandatory.t
index 44031f6..d8f547c 100644
--- a/t/emi_non_mandatory.t
+++ b/t/emi_non_mandatory.t
@@ -212,7 +212,7 @@ my %expectations = (
my %targets = find_prefixes_ready_to_upload($config, %pkg_tree);
foreach my $prefix (sort keys %expectations) {
- my $ready = $prefix ~~ @{$targets{'cauldron'}{'core/release'}{'to_upload'}};
+ my $ready = $prefix ~~ @{$targets{cauldron}{'core/release'}{to_upload}};
ok($expectations{$prefix}{ready} == $ready);
next unless $expectations{$prefix}{ready};
@@ -232,7 +232,7 @@ foreach my $prefix (sort keys %expectations) {
ok($all_uploaded);
ok($all_unlinked);
my $srpms_unlinked = @{$pkg_tree{$prefix}{srpms}} ~~ sub {
- "./todo/cauldron/core/release/${prefix}_".@_[0] ~~ @unlinked
+ "./todo/cauldron/core/release/${prefix}_" . @_[0] ~~ @unlinked;
};
ok($expectations{$prefix}{srpm_unlinked} == $srpms_unlinked);
}