[Touch-packages] [Bug 1394136] Re: if statement with pipe to grep randomly fails if pipefail is set

2014-11-19 Thread Michael Kerrin
We can also see the following result: errin@kerrin-HP-Z620-Workstation:~/ce_build$ lsmod | grep -q -e ^kvm_amd -e ^kvm_intel; echo $? 141 kerrin@kerrin-HP-Z620-Workstation:~/ce_build$ lsmod | grep -q -e ^kvm_amd -e ^kvm_intel; echo $? 141 kerrin@kerrin-HP-Z620-Workstation:~/ce_build$ lsmod |

[Touch-packages] [Bug 1394136] [NEW] if statement with pipe to grep randomly fails if pipefail is set

2014-11-19 Thread Michael Kerrin
Public bug reported: The following bash script will fail randomly on trusty but when tested on saucy it worked all the time. On the system we test we have kvm installed and the if statement should evaluate to false and we should see ten PASS lines and no Error. And this should happen all the

[Touch-packages] [Bug 1394136] Re: if statement with pipe to grep randomly fails if pipefail is set

2014-11-19 Thread Michael Kerrin
But this seems to work kerrin@kerrin-HP-Z620-Workstation:~/ce_build$ echo kvm_intel xxx | grep -q -e ^kvm_amd -e ^kvm_intel; echo $? 0 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to bash in Ubuntu.