diff options
author | Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> | 2021-03-20 12:46:29 +0100 |
---|---|---|
committer | Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> | 2021-03-20 12:46:29 +0100 |
commit | 5d36af803d1cbdbf1daa7b2deae5fabf8be7b098 (patch) | |
tree | 922fa4409976b092f059c9326e9a835eaad6524e | |
parent | ecb731121f888765cd604f15333b9cc059dd9e0a (diff) | |
download | fpm-5d36af803d1cbdbf1daa7b2deae5fabf8be7b098.tar.gz fpm-5d36af803d1cbdbf1daa7b2deae5fabf8be7b098.zip |
Adjust CLI testing to account for default profile name
-rw-r--r-- | fpm/test/cli_test/cli_test.f90 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fpm/test/cli_test/cli_test.f90 b/fpm/test/cli_test/cli_test.f90 index 80e4526..d979f1a 100644 --- a/fpm/test/cli_test/cli_test.f90 +++ b/fpm/test/cli_test/cli_test.f90 @@ -63,7 +63,7 @@ character(len=*),parameter :: tests(*)= [ character(len=256) :: & 'CMD="test proj1 p2 project3 --profile release -- arg1 -x ""and a long one""", & &NAME="proj1","p2","project3",profile="release" ARGS="""arg1"" -x ""and a long one""", ', & -'CMD="build", NAME= profile="default",ARGS="",', & +'CMD="build", NAME= profile="",ARGS="",', & 'CMD="build --profile release", NAME= profile="release",ARGS="",', & ' ' ] character(len=256) :: readme(3) @@ -92,7 +92,7 @@ if(command_argument_count().eq.0)then ! assume if called with no arguments to d endif ! blank out name group EXPECTED name=[(repeat(' ',len(name)),i=1,max_names)] ! the words on the command line sans the subcommand name - profile="default" ! --profile PROF + profile="" ! --profile PROF w_e=.false. ! --app w_t=.false. ! --test args=repeat(' ',132) ! -- ARGS @@ -109,7 +109,7 @@ if(command_argument_count().eq.0)then ! assume if called with no arguments to d if(estat.eq.0)then open(file='_test_cli',newunit=lun,delim='quote') act_name=[(repeat(' ',len(act_name)),i=1,max_names)] - act_profile='default' + act_profile='' act_w_e=.false. act_w_t=.false. act_args=repeat(' ',132) @@ -206,7 +206,7 @@ allocate (character(len=len(name)) :: act_name(0) ) act_args='' act_w_e=.false. act_w_t=.false. -act_profile='default' +act_profile='' select type(settings=>cmd_settings) type is (fpm_new_settings) |