Skip to content

Commit 5d36af8

Browse files
committed
Adjust CLI testing to account for default profile name
1 parent ecb7311 commit 5d36af8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fpm/test/cli_test/cli_test.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ program main
6363
'CMD="test proj1 p2 project3 --profile release -- arg1 -x ""and a long one""", &
6464
&NAME="proj1","p2","project3",profile="release" ARGS="""arg1"" -x ""and a long one""", ', &
6565

66-
'CMD="build", NAME= profile="default",ARGS="",', &
66+
'CMD="build", NAME= profile="",ARGS="",', &
6767
'CMD="build --profile release", NAME= profile="release",ARGS="",', &
6868
' ' ]
6969
character(len=256) :: readme(3)
@@ -92,7 +92,7 @@ program main
9292
endif
9393
! blank out name group EXPECTED
9494
name=[(repeat(' ',len(name)),i=1,max_names)] ! the words on the command line sans the subcommand name
95-
profile="default" ! --profile PROF
95+
profile="" ! --profile PROF
9696
w_e=.false. ! --app
9797
w_t=.false. ! --test
9898
args=repeat(' ',132) ! -- ARGS
@@ -109,7 +109,7 @@ program main
109109
if(estat.eq.0)then
110110
open(file='_test_cli',newunit=lun,delim='quote')
111111
act_name=[(repeat(' ',len(act_name)),i=1,max_names)]
112-
act_profile='default'
112+
act_profile=''
113113
act_w_e=.false.
114114
act_w_t=.false.
115115
act_args=repeat(' ',132)
@@ -206,7 +206,7 @@ subroutine parse()
206206
act_args=''
207207
act_w_e=.false.
208208
act_w_t=.false.
209-
act_profile='default'
209+
act_profile=''
210210

211211
select type(settings=>cmd_settings)
212212
type is (fpm_new_settings)

0 commit comments

Comments
 (0)