test_fipsinstall: Fallback to config(FIPSKEY) for the FIPSKEY
authorTomas Mraz <tomas@openssl.org>
Tue, 5 Apr 2022 14:43:45 +0000 (16:43 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 7 Apr 2022 09:26:12 +0000 (11:26 +0200)
Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18048)

(cherry picked from commit ffc22e038e92d5dd956362fa48babd03cff202d1)

test/recipes/03-test_fipsinstall.t

index d99974e46748271873f7a2d595b0981a6546044c..79b45af7957c4889ff81e09fb26ba7f0bc3e3180 100644 (file)
@@ -27,7 +27,7 @@ plan skip_all => "Test only supported in a fips build" if disabled("fips");
 plan tests => 29;
 
 my $infile = bldtop_file('providers', platform->dso('fips'));
-my $fipskey = $ENV{FIPSKEY} // '00';
+my $fipskey = $ENV{FIPSKEY} // config('FIPSKEY') // '00';
 
 # Read in a text $infile and replace the regular expression in $srch with the
 # value in $repl and output to a new file $outfile.