Skip to content

Commit

Permalink
Refs 11914. Linter.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
  • Loading branch information
Miguel Barro committed Dec 21, 2021
1 parent a23cc9b commit ecdf86b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/blackbox/common/BlackboxTestsSecurity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class SecurityPkcs : public ::testing::Test
#ifdef _WIN32 // We are running windows
ASSERT_EQ(0,
std::system ("powershell -C \"softhsm2-util --show-slots | sls 'Serial number:\\s*([\\d\\w]+)' | " \
"% { $_.Matches.Groups[1].Value } | Out-File -FilePath softhsm_serial -Encoding ASCII\""));
"% { $_.Matches.Groups[1].Value } | Out-File -FilePath softhsm_serial -Encoding ASCII\""));
#else // We are running something with sh
ASSERT_EQ(0,
std::system ("softhsm2-util --show-slots | grep -oP 'Serial number:\\s*\\K(\\d|\\w)+' > softhsm_serial"));
Expand Down Expand Up @@ -197,8 +197,8 @@ class SecurityPkcs : public ::testing::Test
{
ASSERT_NE(tokens.end(), tokens.find(token_id));

std::stringstream cmd;
cmd << "softhsm2-util --import " << key_file << " --token " << token_id << " --label " << key_label
std::stringstream cmd;
cmd << "softhsm2-util --import " << key_file << " --token " << token_id << " --label " << key_label
<< " --pin " << hsm_token_pin << " --id " << key_id << "";
// Import the key
ASSERT_EQ(0,
Expand Down

0 comments on commit ecdf86b

Please sign in to comment.