fix: gate windows plugin test paths on host platform

This commit is contained in:
2026-03-08 19:01:06 -07:00
parent 958c73be06
commit 0e69162aea

View File

@@ -96,10 +96,10 @@ test('installFirstRunPluginToDefaultLocation installs plugin and backs up existi
}); });
}); });
test( test('installFirstRunPluginToDefaultLocation installs plugin to Windows mpv defaults', () => {
'installFirstRunPluginToDefaultLocation installs plugin to Windows mpv defaults', if (process.platform !== 'win32') {
{ skip: process.platform !== 'win32' }, return;
() => { }
withTempDir((root) => { withTempDir((root) => {
const resourcesPath = path.join(root, 'resources'); const resourcesPath = path.join(root, 'resources');
const pluginRoot = path.join(resourcesPath, 'plugin'); const pluginRoot = path.join(resourcesPath, 'plugin');
@@ -130,13 +130,12 @@ test(
'configured=true\n', 'configured=true\n',
); );
}); });
}, });
);
test( test('installFirstRunPluginToDefaultLocation rewrites Windows plugin socket_path', () => {
'installFirstRunPluginToDefaultLocation rewrites Windows plugin socket_path', if (process.platform !== 'win32') {
{ skip: process.platform !== 'win32' }, return;
() => { }
withTempDir((root) => { withTempDir((root) => {
const resourcesPath = path.join(root, 'resources'); const resourcesPath = path.join(root, 'resources');
const pluginRoot = path.join(resourcesPath, 'plugin'); const pluginRoot = path.join(resourcesPath, 'plugin');
@@ -164,5 +163,4 @@ test(
'binary_path=\nsocket_path=\\\\.\\pipe\\subminer-socket\n', 'binary_path=\nsocket_path=\\\\.\\pipe\\subminer-socket\n',
); );
}); });
}, });
);