Skip to content

Commit 9e004ec

Browse files
authored
Fix early expansion in Packit test for openssl on Windows (#84)
1 parent 88b2a57 commit 9e004ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/openssl/test.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
echo I hashed the previous version of this script, unfortunately the hash was my only backup. Whoops! > test.txt
22

33
REM This hash does not match the hash on Unix, due to line ending differences
4-
set "expected_output=SHA2-256(stdin)= a6a6ac959ebea1f5ec010438e2ccec6fbc73f1cc53797a02ae6cbf3cd9477e9a"
4+
set "expected_output=a6a6ac959ebea1f5ec010438e2ccec6fbc73f1cc53797a02ae6cbf3cd9477e9a"
55

6-
for /f "usebackq delims=" %%A in (`"%PACKIT_PACKAGE_PATH%\bin\openssl.exe" sha256 -hex ^< test.txt`) do set "output=%%A"
6+
for /f "tokens=2 usebackq" %%A in (`"%PACKIT_PACKAGE_PATH%\bin\openssl.exe" sha256 -hex ^< test.txt`) do set "output=%%A"
77
if ERRORLEVEL 1 (
88
echo Test failed: openssl command exited with code %ERRORLEVEL%
99
exit /b 1

0 commit comments

Comments
 (0)