Skip to content

Commit be92eb8

Browse files
CI: Fix tests
1 parent 33feb20 commit be92eb8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/dev-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
cd tests
5656
./prepare_tests.js
5757
export QT_DEBUG_PLUGINS=1
58-
./test_hobbits.js ${{ github.workspace }}/build/bin/hobbits-runner -p ${{ github.workspace }}/build/plugins
58+
./test_hobbits.js "${{ github.workspace }}/build/bin/hobbits-runner" -p "${{ github.workspace }}/build/plugins"
5959
cd ${{ github.workspace }}
6060
6161
- name: Package Build Artifacts

tests/test_hobbits.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22

33
const { readdirSync, unlinkSync, existsSync } = require('fs')
4-
const { join } = require('path')
4+
const { join, normalize } = require('path')
55
const { execFileSync } = require("child_process");
66
const glob = require('glob');
77
const filecompare = require('filecompare');
@@ -26,7 +26,7 @@ async function runTests() {
2626
let failures = 0;
2727
let successes = 0;
2828

29-
let baseDir = join(__dirname, 'extracted_tests')
29+
let baseDir = join(normalize(__dirname), 'extracted_tests')
3030

3131
testDirs = readdirSync(baseDir, { withFileTypes: true })
3232
.filter(dirent => dirent.isDirectory())

0 commit comments

Comments
 (0)