File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,25 @@ func TestEnvOptionParsing(t *testing.T) {
7272 require .False (t , o .GitCloneSingleBranch )
7373 require .True (t , o .GitCloneThinPack )
7474 })
75+
76+ t .Run ("remote repo build mode" , func (t * testing.T ) {
77+ t .Setenv (options .WithEnvPrefix ("REMOTE_REPO_BUILD_MODE" ), "true" )
78+ o := runCLI ()
79+ require .True (t , o .RemoteRepoBuildMode )
80+ })
81+
82+ t .Run ("binary path" , func (t * testing.T ) {
83+ const val = "/usr/local/bin/envbuilder"
84+ t .Setenv (options .WithEnvPrefix ("BINARY_PATH" ), val )
85+ o := runCLI ()
86+ require .Equal (t , o .BinaryPath , val )
87+ })
88+
89+ t .Run ("git clone submodules" , func (t * testing.T ) {
90+ t .Setenv (options .WithEnvPrefix ("GIT_CLONE_SUBMODULES" ), "true" )
91+ o := runCLI ()
92+ require .True (t , o .GitCloneSubmodules )
93+ })
7594 })
7695}
7796
You can’t perform that action at this time.
0 commit comments