X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=build%2Fupdate_oldconfig;h=6d4d87045063c802e693fbb7c3df7f3ee0b136e7;hp=5dd030fd72b2da564855ccf9ee05fb36f3e4d363;hb=76772699e9276b0445ded4c24f17b5b687a38b63;hpb=1e2530982ee0bab9e0f2be7f0b197b68ba99b015 diff --git a/build/update_oldconfig b/build/update_oldconfig index 5dd030f..6d4d870 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] @@ -58,4 +61,14 @@ expect { send "m\r" exp_continue } + -re "\n *(\[^\n]* \\\[Y\/n\/m\/\\?] \\(NEW\\)) " { + puts "$expect_out(1,string) m" + send "m\r" + exp_continue + } + -re "\n *(\[^\n]* \\\[Y\/\\?] \\(NEW\\)) " { + puts "$expect_out(1,string) y" + send "y\r" + exp_continue + } }