From 9832a6e96a6f3a9a1ed3753f8ecf3ea5c9f69f85db85fbff92b68a08295f052d Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Fri, 20 Dec 2024 13:58:35 +0100 Subject: [PATCH] disable wpt/test-webcrypto.js on s390x --- fix_ci_tests.patch | 14 ++++++++++++++ nodejs22.changes | 6 ++++++ 2 files changed, 20 insertions(+) diff --git a/fix_ci_tests.patch b/fix_ci_tests.patch index c9bd3ce..4c43cc1 100644 --- a/fix_ci_tests.patch +++ b/fix_ci_tests.patch @@ -113,3 +113,17 @@ Index: node-v22.12.0/test/parallel/test-dns.js const parsed = dnstools.parseDNSPacket(msg); const domain = parsed.questions[0].domain; assert.strictEqual(domain, 'example.org'); +Index: node-v22.12.0/test/wpt/test-webcrypto.js +=================================================================== +--- node-v22.12.0.orig/test/wpt/test-webcrypto.js ++++ node-v22.12.0/test/wpt/test-webcrypto.js +@@ -1,7 +1,8 @@ + 'use strict'; + + const common = require('../common'); +-if (!common.hasCrypto) ++const os = require('os') ++if (!common.hasCrypto || os.arch() == 's390x') + common.skip('missing crypto'); + + const { WPTRunner } = require('../common/wpt'); diff --git a/nodejs22.changes b/nodejs22.changes index 46bef60..235707a 100644 --- a/nodejs22.changes +++ b/nodejs22.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Dec 20 12:56:09 UTC 2024 - Adam Majer + +- fix_ci_tests.patch: skip wpt/test-webcrypto on s390x as it has + unexpected differences between z13 and z15 + ------------------------------------------------------------------- Thu Dec 5 13:53:22 UTC 2024 - Adam Majer