Skip to content

Commit

Permalink
CI: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniovazquezblanco committed Jun 4, 2024
1 parent 33feb20 commit be92eb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
cd tests
./prepare_tests.js
export QT_DEBUG_PLUGINS=1
./test_hobbits.js ${{ github.workspace }}/build/bin/hobbits-runner -p ${{ github.workspace }}/build/plugins
./test_hobbits.js "${{ github.workspace }}/build/bin/hobbits-runner" -p "${{ github.workspace }}/build/plugins"
cd ${{ github.workspace }}
- name: Package Build Artifacts
Expand Down
4 changes: 2 additions & 2 deletions tests/test_hobbits.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node

const { readdirSync, unlinkSync, existsSync } = require('fs')
const { join } = require('path')
const { join, normalize } = require('path')
const { execFileSync } = require("child_process");
const glob = require('glob');
const filecompare = require('filecompare');
Expand All @@ -26,7 +26,7 @@ async function runTests() {
let failures = 0;
let successes = 0;

let baseDir = join(__dirname, 'extracted_tests')
let baseDir = join(normalize(__dirname), 'extracted_tests')

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

0 comments on commit be92eb8

Please sign in to comment.