Commit 9a9ff872 authored by Laine Stump's avatar Laine Stump

Fix runtime "undefined global" error in 100-disk-encryption.t

Commit 3836a38c added a $secret->undefine call at the end of
100-disk-encryption.t because the presence of the secret was
reportedly causing an error when the test was run a 2nd
time. Unfortunately the definition of "my $secret" was inside a SKIP:
{ ... } block, but the $secret->undefine was added just outside that
block, so the test failed when it was run.
Signed-off-by: 's avatarLaine Stump <laine@laine.org>
Reviewed-by: 's avatarYash Mankad <ymankad@redhat.com>
parent b4dcd245
......@@ -117,6 +117,6 @@ diag "Undefining the inactive domain config";
$dom->undefine;
ok_error(sub { $conn->get_domain_by_name("tck") }, "NO_DOMAIN error raised from missing domain", 42);
}
$secret->undefine;
}
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