test_fipsinstall: Fallback to config(FIPSKEY) for the FIPSKEY

Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18048)
This commit is contained in:
Tomas Mraz 2022-04-05 16:43:45 +02:00
parent bc6bac8561
commit ffc22e038e

View 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.