@@ -469,6 +469,11 @@ if (process.platform === "win32") {
469469 } ,
470470 environmentVars : { } ,
471471 expectedPowerShellSequence : [
472+ {
473+ exePath : "C:\\Users\\test\\pwsh\\pwsh.exe" ,
474+ displayName : "pwsh" ,
475+ supportsProperArguments : true
476+ } ,
472477 {
473478 exePath : "C:\\Users\\test\\pwsh\\pwsh.exe" ,
474479 displayName : "pwsh" ,
@@ -479,6 +484,11 @@ if (process.platform === "win32") {
479484 displayName : "pwsh-tilde" ,
480485 supportsProperArguments : true
481486 } ,
487+ {
488+ exePath : path . join ( os . homedir ( ) , "pwsh" , "pwsh.exe" ) ,
489+ displayName : "pwsh-tilde" ,
490+ supportsProperArguments : true
491+ } ,
482492 {
483493 exePath : "C:\\Users\\test\\pwsh\\pwsh" ,
484494 displayName : "pwsh-no-exe" ,
@@ -499,6 +509,11 @@ if (process.platform === "win32") {
499509 displayName : "pwsh-no-exe" ,
500510 supportsProperArguments : true
501511 } ,
512+ {
513+ exePath : "C:\\Users\\test\\pwsh\\pwsh" ,
514+ displayName : "pwsh-no-exe" ,
515+ supportsProperArguments : true
516+ } ,
502517 {
503518 exePath : "C:\\Users\\test\\pwsh\\" ,
504519 displayName : "pwsh-folder" ,
@@ -514,6 +529,11 @@ if (process.platform === "win32") {
514529 displayName : "pwsh-folder" ,
515530 supportsProperArguments : true
516531 } ,
532+ {
533+ exePath : "C:\\Users\\test\\pwsh\\" ,
534+ displayName : "pwsh-folder" ,
535+ supportsProperArguments : true
536+ } ,
517537 {
518538 exePath : "C:\\Users\\test\\pwsh" ,
519539 displayName : "pwsh-folder-no-slash" ,
@@ -534,6 +554,16 @@ if (process.platform === "win32") {
534554 displayName : "pwsh-folder-no-slash" ,
535555 supportsProperArguments : true
536556 } ,
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+ } ,
537567 {
538568 exePath : "C:\\Users\\test\\pwsh\\pwsh.exe" ,
539569 displayName : "pwsh-single-quotes" ,
@@ -544,6 +574,11 @@ if (process.platform === "win32") {
544574 displayName : "pwsh-double-quotes" ,
545575 supportsProperArguments : true
546576 } ,
577+ {
578+ exePath : "C:\\Users\\test\\pwsh\\pwsh.exe" ,
579+ displayName : "pwsh-double-quotes" ,
580+ supportsProperArguments : true
581+ } ,
547582 ] ,
548583 filesystem : { } ,
549584 }
@@ -760,7 +795,7 @@ if (process.platform === "win32") {
760795
761796 successAdditionalTestCases = [
762797 { // Also sufficient for macOS as the behavior is the same
763- name : "Linux (Additional PowerShell Executables)" ,
798+ name : "Linux/macOS (Additional PowerShell Executables)" ,
764799 platformDetails : {
765800 operatingSystem : platform . OperatingSystem . Linux ,
766801 isOS64Bit : true ,
@@ -773,6 +808,16 @@ if (process.platform === "win32") {
773808 displayName : "pwsh" ,
774809 supportsProperArguments : true
775810 } ,
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+ } ,
776821 {
777822 exePath : path . join ( os . homedir ( ) , "bin" , "pwsh" ) ,
778823 displayName : "pwsh-tilde" ,
@@ -788,6 +833,11 @@ if (process.platform === "win32") {
788833 displayName : "pwsh-folder" ,
789834 supportsProperArguments : true
790835 } ,
836+ {
837+ exePath : "/home/bin/" ,
838+ displayName : "pwsh-folder" ,
839+ supportsProperArguments : true
840+ } ,
791841 {
792842 exePath : "/home/bin" ,
793843 displayName : "pwsh-folder-no-slash" ,
@@ -798,6 +848,16 @@ if (process.platform === "win32") {
798848 displayName : "pwsh-folder-no-slash" ,
799849 supportsProperArguments : true
800850 } ,
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+ } ,
801861 {
802862 exePath : "/home/bin/pwsh" ,
803863 displayName : "pwsh-single-quotes" ,
@@ -808,6 +868,11 @@ if (process.platform === "win32") {
808868 displayName : "pwsh-double-quotes" ,
809869 supportsProperArguments : true
810870 } ,
871+ {
872+ exePath : "/home/bin/pwsh" ,
873+ displayName : "pwsh-double-quotes" ,
874+ supportsProperArguments : true
875+ } ,
811876 ] ,
812877 filesystem : { } ,
813878 }
0 commit comments