Browse Source

normalize test path

Samuel Attard 10 months ago
parent
commit
755a667b7c
2 changed files with 3 additions and 2 deletions
  1. 2 1
      .github/workflows/pipeline-segment-electron-test.yml
  2. 1 1
      spec/index.js

+ 2 - 1
.github/workflows/pipeline-segment-electron-test.yml

@@ -120,7 +120,8 @@ jobs:
           runuser -u builduser -- xvfb-run script/actions/run-tests.sh script/yarn test --runners=main --trace-uncaught --enable-logging --files $tests_files
         fi
     - name: Wait for active SSH sessions
-      if: always() && !cancelled() && ${{ inputs.target-platform == 'linux' }}
+      if: always() && !cancelled()
+      shell: bash
       run: |
         while [ -f /var/.ssh-lock ]
         do

+ 1 - 1
spec/index.js

@@ -125,7 +125,7 @@ app.whenReady().then(async () => {
   const validTestPaths = argv.files && argv.files.map(file =>
     path.isAbsolute(file)
       ? path.relative(baseElectronDir, file)
-      : file);
+      : path.normalize(file));
   const filter = (file) => {
     if (!/-spec\.[tj]s$/.test(file)) {
       return false;