Skip to content

Commit

Permalink
test: Fix Snap unittest on computers where snap could be installed
Browse files Browse the repository at this point in the history
  • Loading branch information
g-bougard committed Nov 25, 2020
1 parent 11fd04b commit 5be8e8d
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -64,7 +64,8 @@ sub _getPackagesList {
};

my $folder = "/snap/".$snap->{NAME};
if (-d $folder) {
# Don't check install date during unittest
if (!$params{file} && -d $folder) {
my $st = stat($folder);
my ($year, $month, $day) = (localtime($st->mtime))[5, 4, 3];
$snap->{INSTALLDATE} = sprintf(
Expand Down

0 comments on commit 5be8e8d

Please sign in to comment.