Skip to content

Commit f7f0650

Browse files
committed
update os info
1 parent f7f6a8c commit f7f0650

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/testResultsSummary.unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ describe('Artifact Processing Tests', () => {
6262

6363
function getOSInfo() {
6464
const os = require('os').platform().toLowerCase();
65-
if (os.includes("win")) return { osName: "windows", workspaceParent: "C:\\" };
65+
if (os.includes("win") && !os.includes("darwin")) return { osName: "windows", workspaceParent: "C:\\" };
6666
if (os.includes("linux") || os.includes("unix") || os.includes("aix")) return { osName: "linux", workspaceParent: "/home/user/" };
6767
if (os.includes("darwin")) return { osName: "mac", workspaceParent: "/Users/username/" };
6868
throw new Error(`Unsupported OS: ${os}`);

0 commit comments

Comments
 (0)