mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-12 12:06:16 -08:00
fix(packaging): make the darwin frame-copy packaging test host-agnostic
On non-macOS CI hosts validatePackagedEmbeddedMpv also reports that macOS link validation needs a macOS host, so the success-path assertion now checks only the frame-copy artifact requirement instead of expecting an empty error list. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
79f6955bcb
commit
84fd85511c
1 file changed
+12
-6
@@ -364,12 +364,18 @@ test('embedded MPV package validation accepts Windows runtime files and Linux pr
|
||||
join(darwinNativeDir, 'embedded_mpv_frame_reader.node'),
|
||||
''
|
||||
);
|
||||
assert.deepEqual(
|
||||
validatePackagedEmbeddedMpv(darwinResourceDir, {
|
||||
platform: 'darwin',
|
||||
required: true,
|
||||
}),
|
||||
[]
|
||||
// Host-agnostic assertion: on non-macOS hosts the validator also
|
||||
// reports that link validation needs a macOS host, so only the
|
||||
// frame-copy artifact requirement is asserted here.
|
||||
const remainingErrors = validatePackagedEmbeddedMpv(
|
||||
darwinResourceDir,
|
||||
{ platform: 'darwin', required: true }
|
||||
);
|
||||
assert.ok(
|
||||
!remainingErrors.some((error) =>
|
||||
error.includes('frame-copy artifact')
|
||||
),
|
||||
`unexpected frame-copy errors: ${remainingErrors.join('; ')}`
|
||||
);
|
||||
|
||||
const linuxResourceDir = join(tempDir, 'linux');
|
||||
|
||||
Reference in new issue
Block a user