mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Merge pull request #1010 from lukaspj/fix-test-reporting
Make all test result paths conform to the Linux runner setup
This commit is contained in:
commit
e234b50a24
1 changed files with 19 additions and 0 deletions
19
.github/workflows/cmake.yml
vendored
19
.github/workflows/cmake.yml
vendored
|
|
@ -66,6 +66,25 @@ jobs:
|
|||
fi
|
||||
shell: bash
|
||||
|
||||
# Make all paths conform to the Unix runner setup:
|
||||
- name: Replace Absolute Paths In Test Report
|
||||
run: |
|
||||
import os
|
||||
dir = os.environ["WorkspaceDirectory"]
|
||||
filePath = dir + "/My Projects/Torque3D/game/test_detail.xml"
|
||||
f = open(filePath, 'r')
|
||||
filedata = f.read()
|
||||
f.close()
|
||||
|
||||
filedata = filedata.replace(dir, "/home/runner/work/Torque3D/Torque3D").replace("\\", "/")
|
||||
|
||||
f = open(filePath, 'w')
|
||||
f.write(filedata)
|
||||
f.close()
|
||||
shell: python
|
||||
env:
|
||||
WorkspaceDirectory: ${{github.workspace}}
|
||||
|
||||
- name: Upload Test Report
|
||||
uses: actions/upload-artifact@v3
|
||||
if: always() # always run even if the previous step fails
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue