IIRC, parted assumes --script mode when stdin is not a tty. There was an undocumented switch that the test suite uses to override this, or I thought that expect allocates a pseudo tty (might need a switch) and that should also do the trick.
IIRC, parted assumes --script mode when stdin is not a tty. There was an undocumented switch that the test suite uses to override this, or I thought that expect allocates a pseudo tty (might need a switch) and that should also do the trick.