@@ -469,6 +469,11 @@ if (process.platform === "win32") {
469
469
} ,
470
470
environmentVars : { } ,
471
471
expectedPowerShellSequence : [
472
+ {
473
+ exePath : "C:\\Users\\test\\pwsh\\pwsh.exe" ,
474
+ displayName : "pwsh" ,
475
+ supportsProperArguments : true
476
+ } ,
472
477
{
473
478
exePath : "C:\\Users\\test\\pwsh\\pwsh.exe" ,
474
479
displayName : "pwsh" ,
@@ -479,6 +484,11 @@ if (process.platform === "win32") {
479
484
displayName : "pwsh-tilde" ,
480
485
supportsProperArguments : true
481
486
} ,
487
+ {
488
+ exePath : path . join ( os . homedir ( ) , "pwsh" , "pwsh.exe" ) ,
489
+ displayName : "pwsh-tilde" ,
490
+ supportsProperArguments : true
491
+ } ,
482
492
{
483
493
exePath : "C:\\Users\\test\\pwsh\\pwsh" ,
484
494
displayName : "pwsh-no-exe" ,
@@ -499,6 +509,11 @@ if (process.platform === "win32") {
499
509
displayName : "pwsh-no-exe" ,
500
510
supportsProperArguments : true
501
511
} ,
512
+ {
513
+ exePath : "C:\\Users\\test\\pwsh\\pwsh" ,
514
+ displayName : "pwsh-no-exe" ,
515
+ supportsProperArguments : true
516
+ } ,
502
517
{
503
518
exePath : "C:\\Users\\test\\pwsh\\" ,
504
519
displayName : "pwsh-folder" ,
@@ -514,6 +529,11 @@ if (process.platform === "win32") {
514
529
displayName : "pwsh-folder" ,
515
530
supportsProperArguments : true
516
531
} ,
532
+ {
533
+ exePath : "C:\\Users\\test\\pwsh\\" ,
534
+ displayName : "pwsh-folder" ,
535
+ supportsProperArguments : true
536
+ } ,
517
537
{
518
538
exePath : "C:\\Users\\test\\pwsh" ,
519
539
displayName : "pwsh-folder-no-slash" ,
@@ -534,6 +554,16 @@ if (process.platform === "win32") {
534
554
displayName : "pwsh-folder-no-slash" ,
535
555
supportsProperArguments : true
536
556
} ,
557
+ {
558
+ exePath : "C:\\Users\\test\\pwsh" ,
559
+ displayName : "pwsh-folder-no-slash" ,
560
+ supportsProperArguments : true
561
+ } ,
562
+ {
563
+ exePath : "C:\\Users\\test\\pwsh\\pwsh.exe" ,
564
+ displayName : "pwsh-single-quotes" ,
565
+ supportsProperArguments : true
566
+ } ,
537
567
{
538
568
exePath : "C:\\Users\\test\\pwsh\\pwsh.exe" ,
539
569
displayName : "pwsh-single-quotes" ,
@@ -544,6 +574,11 @@ if (process.platform === "win32") {
544
574
displayName : "pwsh-double-quotes" ,
545
575
supportsProperArguments : true
546
576
} ,
577
+ {
578
+ exePath : "C:\\Users\\test\\pwsh\\pwsh.exe" ,
579
+ displayName : "pwsh-double-quotes" ,
580
+ supportsProperArguments : true
581
+ } ,
547
582
] ,
548
583
filesystem : { } ,
549
584
}
@@ -760,7 +795,7 @@ if (process.platform === "win32") {
760
795
761
796
successAdditionalTestCases = [
762
797
{ // Also sufficient for macOS as the behavior is the same
763
- name : "Linux (Additional PowerShell Executables)" ,
798
+ name : "Linux/macOS (Additional PowerShell Executables)" ,
764
799
platformDetails : {
765
800
operatingSystem : platform . OperatingSystem . Linux ,
766
801
isOS64Bit : true ,
@@ -773,6 +808,16 @@ if (process.platform === "win32") {
773
808
displayName : "pwsh" ,
774
809
supportsProperArguments : true
775
810
} ,
811
+ {
812
+ exePath : "/home/bin/pwsh" ,
813
+ displayName : "pwsh" ,
814
+ supportsProperArguments : true
815
+ } ,
816
+ {
817
+ exePath : path . join ( os . homedir ( ) , "bin" , "pwsh" ) ,
818
+ displayName : "pwsh-tilde" ,
819
+ supportsProperArguments : true
820
+ } ,
776
821
{
777
822
exePath : path . join ( os . homedir ( ) , "bin" , "pwsh" ) ,
778
823
displayName : "pwsh-tilde" ,
@@ -788,6 +833,11 @@ if (process.platform === "win32") {
788
833
displayName : "pwsh-folder" ,
789
834
supportsProperArguments : true
790
835
} ,
836
+ {
837
+ exePath : "/home/bin/" ,
838
+ displayName : "pwsh-folder" ,
839
+ supportsProperArguments : true
840
+ } ,
791
841
{
792
842
exePath : "/home/bin" ,
793
843
displayName : "pwsh-folder-no-slash" ,
@@ -798,6 +848,16 @@ if (process.platform === "win32") {
798
848
displayName : "pwsh-folder-no-slash" ,
799
849
supportsProperArguments : true
800
850
} ,
851
+ {
852
+ exePath : "/home/bin" ,
853
+ displayName : "pwsh-folder-no-slash" ,
854
+ supportsProperArguments : true
855
+ } ,
856
+ {
857
+ exePath : "/home/bin/pwsh" ,
858
+ displayName : "pwsh-single-quotes" ,
859
+ supportsProperArguments : true
860
+ } ,
801
861
{
802
862
exePath : "/home/bin/pwsh" ,
803
863
displayName : "pwsh-single-quotes" ,
@@ -808,6 +868,11 @@ if (process.platform === "win32") {
808
868
displayName : "pwsh-double-quotes" ,
809
869
supportsProperArguments : true
810
870
} ,
871
+ {
872
+ exePath : "/home/bin/pwsh" ,
873
+ displayName : "pwsh-double-quotes" ,
874
+ supportsProperArguments : true
875
+ } ,
811
876
] ,
812
877
filesystem : { } ,
813
878
}
0 commit comments