hpcugent/easybuild-framework — pull request #887 by boegel (2014-03-20 08:13:43+00:00)
Title: add support to run_cmd_qa to supply a list of answers

use case for this: the interactive `configure` script of HEALPix (http://healpix.sourceforge.net/) requires EB to cycle through the configure process a couple of times, in a single call to `configure`; for this, the same question needs to be answered differently a couple of times:

```
*************************
Welcome to Healpix 2.20a
*************************

This script takes care of the configuration and compilation
of the C, C++, F90 and IDL packages of the Healpix distribution.

Do you want to:
(0): exit
(1): configure Healpix IDL package
(2): configure Healpix C package, and edit Makefile
(3): configure Healpix F90 package, and edit Makefile
(4): configure Healpix C++ package, and edit Makefile
(5): see what configuration files have been created so far
(6): edit your shell configuration file to have easier access to Healpix codes
(-1): reset
(will *REMOVE* the Makefile and configuration files, and exit)
(0): exit

Enter your choice (configuration of packages can be done in any order):
```

More specifically, the `Enter your choice` question needs to be answered with `2` (and then a couple more questions need to be answered), then `3`, `4` and `0` to exit.

This PR adds support for simply specifying this as follows in the dictionary passed to `run_cmd_qa`:

```python
qa = {
"Enter your choice (configuration of packages can be done in any order):": ['2', '3', '4', '0'],
}
```