X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=build%2Fupdate_oldconfig;h=ebe37b82e9eb8eef37f9cc9a5c2cee6623e0e841;hp=033b744357ace07492aa13aaceafb7cef505377e;hb=6857a8e698054abec26ade16f217ffb92c75ece0;hpb=5da992cce94fa944672b72734c9a0965762837ec diff --git a/build/update_oldconfig b/build/update_oldconfig index 033b744..ebe37b8 100755 --- a/build/update_oldconfig +++ b/build/update_oldconfig @@ -1,5 +1,8 @@ #!/usr/bin/expect -f +#enables some diagnostic output +exp_internal 1 + # log all interaction to a file to diagnose failures log_file -a [lindex $argv 0] @@ -15,7 +18,7 @@ set timeout 30 expect { timeout { - puts "timeout" + puts "timeout in update_oldconfig waiting for a prompt we recognize" exit 1 } -re "\n *(\[^\n]* \\\[N\/y\/\\?] \\(NEW\\)) " { @@ -48,4 +51,19 @@ expect { send "\r" exp_continue } + -re "\n *(\[^\n]* \\\[M\/n\/\\?] \\(NEW\\)) " { + puts "$expect_out(1,string) m" + send "m\r" + exp_continue + } + -re "\n *(\[^\n]* \\\[M\/n\/y\/\\?] \\(NEW\\)) " { + puts "$expect_out(1,string) m" + send "m\r" + exp_continue + } + -re "\n *(\[^\n]* \\\[Y\/n\/m\/\\?] \\(NEW\\)) " { + puts "$expect_out(1,string) m" + send "m\r" + exp_continue + } }