fix repo init for branch
This commit is contained in:
@@ -17,6 +17,7 @@ if { ${num_arg} > 0} {
|
||||
set user_password "default"
|
||||
set working_dir "default"
|
||||
set repo_branch "default"
|
||||
set is_build_packages true
|
||||
|
||||
set f [open "config.txt"]
|
||||
set configs [split [read $f] "\n"]
|
||||
@@ -42,7 +43,7 @@ foreach config $configs {
|
||||
set working_dir $value
|
||||
}
|
||||
repo_branch {
|
||||
if { $value eq "default"} {
|
||||
if { $value eq "default" } {
|
||||
puts "INFO: no branch specified, repo init main branch"
|
||||
set repo_branch ""
|
||||
} else {
|
||||
@@ -72,7 +73,7 @@ spawn ./cros_reposync.sh ${working_dir}
|
||||
expect "repo sync has finished successfully"
|
||||
|
||||
spawn ./cros_cp_utilities.sh ${working_dir}
|
||||
expect "dut_pty.sh"
|
||||
expect "dut_pty.sh"
|
||||
|
||||
spawn ./cros_enter_sdk.sh ${working_dir}
|
||||
expect "password"
|
||||
@@ -86,7 +87,7 @@ expect "ERROR:" {
|
||||
}
|
||||
|
||||
expect "(cr)"
|
||||
send "USE=\"-ml_benchmark_drivers\" ./build_packages --board=volteer --accept_licenses='*' | tee daily_build_packaged.log\r"
|
||||
send "USE=\"-ml_benchmark_drivers\" ./build_packages --board=volteer --accept_licenses='*' | tee daily_build_packages.log\r"
|
||||
|
||||
expect "ERROR:" {
|
||||
puts "ERROR: build_packages failed"
|
||||
|
||||
Reference in New Issue
Block a user