Skip to content

Commit c82afed

Browse files
committed
Remove broken tests around daily build
1 parent 082128b commit c82afed

File tree

1 file changed

+27
-50
lines changed

1 file changed

+27
-50
lines changed

test/core/platform.test.ts

+27-50
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ if (process.platform === "win32") {
4040
const msixAppDir = path.join(process.env.LOCALAPPDATA!, "Microsoft", "WindowsApps");
4141
const pwshMsixPath = path.join(msixAppDir, "Microsoft.PowerShell_8wekyb3d8bbwe", "pwsh.exe");
4242
const pwshPreviewMsixPath = path.join(msixAppDir, "Microsoft.PowerShellPreview_8wekyb3d8bbwe", "pwsh.exe");
43-
const pwshDailyDir = path.join(process.env.LOCALAPPDATA!, "Microsoft", "powershell-daily");
44-
const pwshDailyPath = path.join(pwshDailyDir, "pwsh.exe");
4543

4644
successTestCases = [
4745
{
@@ -133,9 +131,6 @@ if (process.platform === "win32") {
133131
},
134132
"C:\\WINDOWS\\SysWOW64\\WindowsPowerShell\\v1.0": {
135133
"powershell.exe": "",
136-
},
137-
[pwshDailyDir]: {
138-
"pwsh.exe": "",
139134
}
140135
},
141136
},
@@ -487,8 +482,6 @@ if (process.platform === "win32") {
487482
}
488483
];
489484
} else {
490-
const pwshDailyDir = path.join(os.homedir(), ".powershell-daily");
491-
492485
successTestCases = [
493486
{
494487
name: "Linux (all installations)",
@@ -502,41 +495,33 @@ if (process.platform === "win32") {
502495
{
503496
exePath: "/usr/bin/pwsh",
504497
displayName: "PowerShell",
505-
supportsProperArguments: true
498+
supportsProperArguments: true,
506499
},
507500
{
508501
exePath: "/snap/bin/pwsh",
509502
displayName: "PowerShell Snap",
510-
supportsProperArguments: true
503+
supportsProperArguments: true,
511504
},
512505
{
513506
exePath: "/usr/bin/pwsh-preview",
514507
displayName: "PowerShell Preview",
515-
supportsProperArguments: true
508+
supportsProperArguments: true,
516509
},
517510
{
518511
exePath: "/snap/bin/pwsh-preview",
519512
displayName: "PowerShell Preview Snap",
520-
supportsProperArguments: true
513+
supportsProperArguments: true,
521514
},
522-
{
523-
exePath: path.join(pwshDailyDir, "pwsh"),
524-
displayName: "PowerShell Daily",
525-
supportsProperArguments: true
526-
}
527515
],
528516
filesystem: {
529517
"/usr/bin": {
530-
"pwsh": "",
518+
pwsh: "",
531519
"pwsh-preview": "",
532520
},
533521
"/snap/bin": {
534-
"pwsh": "",
522+
pwsh: "",
535523
"pwsh-preview": "",
536524
},
537-
[pwshDailyDir]: {
538-
"pwsh": ""
539-
}
540525
},
541526
},
542527
{
@@ -551,47 +536,39 @@ if (process.platform === "win32") {
551536
{
552537
exePath: "/usr/local/bin/pwsh",
553538
displayName: "PowerShell",
554-
supportsProperArguments: true
539+
supportsProperArguments: true,
555540
},
556541
{
557542
exePath: "/opt/homebrew/bin/pwsh",
558543
displayName: "PowerShell (Homebrew)",
559-
supportsProperArguments: true
544+
supportsProperArguments: true,
560545
},
561546
{
562547
exePath: "/opt/homebrew/bin/pwsh-lts",
563548
displayName: "PowerShell LTS (Homebrew)",
564-
supportsProperArguments: true
549+
supportsProperArguments: true,
565550
},
566551
{
567552
exePath: "/usr/local/bin/pwsh-preview",
568553
displayName: "PowerShell Preview",
569-
supportsProperArguments: true
554+
supportsProperArguments: true,
570555
},
571556
{
572557
exePath: "/opt/homebrew/bin/pwsh-preview",
573558
displayName: "PowerShell Preview (Homebrew)",
574-
supportsProperArguments: true
559+
supportsProperArguments: true,
575560
},
576-
{
577-
exePath: path.join(pwshDailyDir, "pwsh"),
578-
displayName: "PowerShell Daily",
579-
supportsProperArguments: true
580-
}
581561
],
582562
filesystem: {
583563
"/usr/local/bin": {
584-
"pwsh": "",
564+
pwsh: "",
585565
"pwsh-preview": "",
586566
},
587567
"/opt/homebrew/bin/": {
588-
"pwsh": "",
568+
pwsh: "",
589569
"pwsh-lts": "",
590570
"pwsh-preview": "",
591571
},
592-
[pwshDailyDir]: {
593-
"pwsh": ""
594-
}
595572
},
596573
},
597574
{
@@ -606,12 +583,12 @@ if (process.platform === "win32") {
606583
{
607584
exePath: "/usr/bin/pwsh",
608585
displayName: "PowerShell",
609-
supportsProperArguments: true
586+
supportsProperArguments: true,
610587
},
611588
],
612589
filesystem: {
613590
"/usr/bin": {
614-
"pwsh": "",
591+
pwsh: "",
615592
},
616593
},
617594
},
@@ -627,12 +604,12 @@ if (process.platform === "win32") {
627604
{
628605
exePath: "/snap/bin/pwsh",
629606
displayName: "PowerShell Snap",
630-
supportsProperArguments: true
607+
supportsProperArguments: true,
631608
},
632609
],
633610
filesystem: {
634611
"/snap/bin": {
635-
"pwsh": "",
612+
pwsh: "",
636613
},
637614
},
638615
},
@@ -648,12 +625,12 @@ if (process.platform === "win32") {
648625
{
649626
exePath: "/usr/local/bin/pwsh",
650627
displayName: "PowerShell",
651-
supportsProperArguments: true
628+
supportsProperArguments: true,
652629
},
653630
],
654631
filesystem: {
655632
"/usr/local/bin": {
656-
"pwsh": "",
633+
pwsh: "",
657634
},
658635
},
659636
},
@@ -665,19 +642,19 @@ if (process.platform === "win32") {
665642
isProcess64Bit: true,
666643
},
667644
environmentVars: {
668-
"USER": "test",
669-
"HOME": "/Users/test",
645+
USER: "test",
646+
HOME: "/Users/test",
670647
},
671648
expectedPowerShellSequence: [
672649
{
673650
exePath: "/Users/test/.dotnet/tools/pwsh",
674651
displayName: ".NET Core PowerShell Global Tool",
675-
supportsProperArguments: false
652+
supportsProperArguments: false,
676653
},
677654
],
678655
filesystem: {
679656
"/Users/test/.dotnet/tools": {
680-
"pwsh": "",
657+
pwsh: "",
681658
},
682659
},
683660
},
@@ -689,19 +666,19 @@ if (process.platform === "win32") {
689666
isProcess64Bit: true,
690667
},
691668
environmentVars: {
692-
"USER": "test",
693-
"HOME": "/home/test",
669+
USER: "test",
670+
HOME: "/home/test",
694671
},
695672
expectedPowerShellSequence: [
696673
{
697674
exePath: "/home/test/.dotnet/tools/pwsh",
698675
displayName: ".NET Core PowerShell Global Tool",
699-
supportsProperArguments: false
676+
supportsProperArguments: false,
700677
},
701678
],
702679
filesystem: {
703680
"/home/test/.dotnet/tools": {
704-
"pwsh": "",
681+
pwsh: "",
705682
},
706683
},
707684
},

0 commit comments

Comments
 (0)