X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=build%2Fupdate_oldconfig;h=3332bf7df3115d6e2b3dbe61ff985621c58ddbef;hp=a9b240d2b1a7351f352ba57263551f69594fbf4f;hb=bc1afa51e9f1df823e3b9aefb5513609ce1de521;hpb=6af10b9e7559e2522dc2890905a8ef5fd0734952 diff --git a/build/update_oldconfig b/build/update_oldconfig index a9b240d..3332bf7 100755 --- a/build/update_oldconfig +++ b/build/update_oldconfig @@ -1,6 +1,11 @@ -#!/usr/bin/expect +#!/usr/bin/expect -f +# log all interaction to a file to diagnose failures +log_file [index $argv 0] + +# and not stddout log_user 0 + set spawnid [spawn make oldconfig] #match_max 200 @@ -10,7 +15,7 @@ set timeout 30 expect { timeout { - puts "timeout" + puts "timeout: $expect_out(buffer)" exit 1 } -re "\n *(\[^\n]* \\\[N\/y\/\\?] \\(NEW\\)) " {