Skip to content

Commit

Permalink
Making the python tolerant of multiple submissions of the same alg
Browse files Browse the repository at this point in the history
  • Loading branch information
ounsworth committed Jul 22, 2024
1 parent 0590d19 commit c19ab91
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/test_certs_r3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test_ta () {
oid=${tafileBasename%_ta.pem} # remove the suffix "_ta.pem"

# some artifacts submit multiple copies of the same cert as .pem, .der, etc. Just skip the second one
if [[ $(expr match "$alreadyTestedOIDs" "*$oid*") != 0 ]]; then
if [[ $(expr match "$alreadyTestedOIDs" ".*$oid.*") != 0 ]]; then
printf "Warning: %s has been submitted multiple times by this provider. Skipping" $oid
return
fi
Expand All @@ -60,10 +60,6 @@ for providerdir in $(ls -d $inputdir/*/); do
printf "Unziping %s to %s\n" $zip $unzipdir
unzip -o $zip -d $unzipdir


echo "DEBUG: Unzipped files found:"
echo "$(find $unzipdir -name "*_ta.pem")"

resultsfile=${outputdir}/${provider}_oqs-provider.csv
echo "key_algorithm_oid,test_result" > $resultsfile # CSV header row

Expand Down

0 comments on commit c19ab91

Please sign in to comment.