Skip to content

Commit

Permalink
Merge pull request os-autoinst#20608 from dzedro/nodejs
Browse files Browse the repository at this point in the history
Worarkound missing test patch
  • Loading branch information
dzedro authored Nov 12, 2024
2 parents 5eed8bd + 210e02d commit a5dcfc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/console/test_openssl_nodejs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ test_node_version(){
quilt setup "../SPECS/nodejs$VERSION.spec"
pushd "$SOURCE_DIR"
quilt push -a
if [ "$VERSION" -eq 18 ]; then
if [[ "$VERSION" -eq 18 && -e /root/crypto_rsa_dsa.patch ]]; then
patch test/parallel/test-crypto-rsa-dsa.js < /root/crypto_rsa_dsa.patch
fi
# Run all test-crypto and test-tls available
Expand Down
3 changes: 2 additions & 1 deletion tests/console/openssl_nodejs.pm
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use testapi;
use serial_terminal 'select_serial_terminal';
use utils;
use repo_tools 'generate_version';
use version_utils qw(is_sle);

sub run {
#Preparation
Expand All @@ -31,7 +32,7 @@ sub run {
$source_repo = script_output(q{zypper lr | grep Source-Pool | awk -F '|' '/Web_and_Scripting_Module/ {print $2}'});
zypper_call("mr -e $source_repo", exitcode => [0, 3]);
}
assert_script_run 'wget --quiet ' . data_url('qam/crypto_rsa_dsa.patch');
assert_script_run 'wget --quiet ' . data_url('qam/crypto_rsa_dsa.patch') unless get_var('FLAVOR') =~ /TERADATA/ || is_sle('=12-sp5');
assert_script_run 'wget --quiet ' . data_url('console/test_openssl_nodejs.sh');
assert_script_run 'chmod +x test_openssl_nodejs.sh';
assert_script_run "./test_openssl_nodejs.sh $os_version", 900;
Expand Down

0 comments on commit a5dcfc5

Please sign in to comment.