summaryrefslogtreecommitdiff
path: root/test/lib/Exim
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2016-11-12 22:48:37 +0100
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2016-11-12 22:49:11 +0100
commit9214c762c1b3717ff92351c8a217cee6726d993b (patch)
treeadf12cfb124146a5c536cf061be6fed9af0dd94c /test/lib/Exim
parent3b3634d02b4845cc9469423b82f6fa8ab47c3ede (diff)
Testsuite: Assume '' for missing VERSION_ID
Diffstat (limited to 'test/lib/Exim')
-rw-r--r--test/lib/Exim/Runtest.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/Exim/Runtest.pm b/test/lib/Exim/Runtest.pm
index 32537f543..ce91084f4 100644
--- a/test/lib/Exim/Runtest.pm
+++ b/test/lib/Exim/Runtest.pm
@@ -119,7 +119,7 @@ sub flavour {
if (open(my $f, '<', "$etc/os-release")) {
local $_ = join '', <$f>;
my ($id) = /^ID="?(.*?)"?\s*$/m;
- my ($version) = /^VERSION_ID="?(.*?)"?\s*$/m;
+ my $version = /^VERSION_ID="?(.*?)"?\s*$/m ? $1 : '';
return "$id$version";
}