trying to make zypper_ref more robust

I thought about the same. But what's read from the tty is read. I can't think of a way you can read what the other test wrote.