Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix windows wpt #4050

Merged
merged 8 commits into from
Feb 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/wpt/runner/runner.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { colors, handlePipes, normalizeName, parseMeta, resolveStatusPath } from

const alwaysExit0 = process.env.GITHUB_WORKFLOW === 'Daily WPT report'

const basePath = fileURLToPath(join(import.meta.url, '../..'))
const basePath = join(fileURLToPath(import.meta.url), '../..')
const testPath = join(basePath, '../fixtures/wpt')
const statusPath = join(basePath, 'status')

Expand Down Expand Up @@ -135,7 +135,7 @@ export class WPTRunner extends EventEmitter {
}

async run () {
const workerPath = fileURLToPath(join(import.meta.url, '../worker.mjs'))
const workerPath = join(fileURLToPath(import.meta.url), '../worker.mjs')
/** @type {Set<Worker>} */
const activeWorkers = new Set()
let finishedFiles = 1
Expand Down
2 changes: 1 addition & 1 deletion test/wpt/server/server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { route as redirectRoute } from './routes/redirect.mjs'
import { Pipeline } from './util.mjs'
import { symbols } from './constants.mjs'

const tests = fileURLToPath(join(import.meta.url, '../../../fixtures/wpt'))
const tests = join(fileURLToPath(import.meta.url), '../../../fixtures/wpt')

// https://web-platform-tests.org/tools/wptserve/docs/stash.html
class Stash extends Map {
Expand Down
2 changes: 1 addition & 1 deletion test/wpt/start-cacheStorage.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { fileURLToPath } from 'url'
import { fork } from 'child_process'
import { on } from 'events'

const serverPath = fileURLToPath(join(import.meta.url, '../server/server.mjs'))
const serverPath = join(fileURLToPath(import.meta.url), '../server/server.mjs')

const child = fork(serverPath, [], {
stdio: ['pipe', 'pipe', 'pipe', 'ipc']
Expand Down
2 changes: 1 addition & 1 deletion test/wpt/start-eventsource.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { fileURLToPath } from 'url'
import { fork } from 'child_process'
import { on } from 'events'

const serverPath = fileURLToPath(join(import.meta.url, '../server/server.mjs'))
const serverPath = join(fileURLToPath(import.meta.url), '../server/server.mjs')

const child = fork(serverPath, [], {
stdio: ['pipe', 'pipe', 'pipe', 'ipc']
Expand Down
2 changes: 1 addition & 1 deletion test/wpt/start-fetch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { on } from 'events'

const { WPT_REPORT } = process.env

const serverPath = fileURLToPath(join(import.meta.url, '../server/server.mjs'))
const serverPath = join(fileURLToPath(import.meta.url), '../server/server.mjs')

const child = fork(serverPath, [], {
stdio: ['pipe', 'pipe', 'pipe', 'ipc']
Expand Down
2 changes: 1 addition & 1 deletion test/wpt/start-mimesniff.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { on } from 'events'

const { WPT_REPORT } = process.env

const serverPath = fileURLToPath(join(import.meta.url, '../server/server.mjs'))
const serverPath = join(fileURLToPath(import.meta.url), '../server/server.mjs')

const child = fork(serverPath, [], {
stdio: ['pipe', 'pipe', 'pipe', 'ipc']
Expand Down
2 changes: 1 addition & 1 deletion test/wpt/start-websockets.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if (process.env.CI) {
// process.exit(0)
}

const serverPath = fileURLToPath(join(import.meta.url, '../server/websocket.mjs'))
const serverPath = join(fileURLToPath(import.meta.url), '../server/websocket.mjs')

const child = fork(serverPath, [], {
stdio: ['pipe', 'pipe', 'pipe', 'ipc']
Expand Down
Loading