[Avocado-devel] Multiplex configuration failing
Cleber Rosa
crosa at redhat.com
Wed Nov 18 18:54:39 UTC 2015
Hi Olav,
Are you including the line numbers? If so, you shouldn't!
This is how an example file should really look like (without the markers):
--- start here <---
hw:
cpu: !mux
intel:
cpu_CFLAGS: '-march=core2'
amd:
cpu_CFLAGS: '-march=athlon64'
arm:
cpu_CFLAGS: '-mabi=apcs-gnu -march=armv8-a -mtune=arm8'
disk: !mux
scsi:
disk_type: 'scsi'
virtio:
disk_type: 'virtio'
distro: !mux
fedora:
init: 'systemd'
mint:
init: 'systemv'
env: !mux
debug:
opt_CFLAGS: '-O0 -g'
prod:
opt_CFLAGS: '-O2'
---> end here <---
This runs fine on my system (using the latest master), and produces:
avocado multiplex --tree /tmp/example.mux
┗━━ run
┣━━ hw
┃ ┣━━ cpu
┃ ┃ ╠══ intel
┃ ┃ ╠══ amd
┃ ┃ ╚══ arm
┃ ┗━━ disk
┃ ╠══ scsi
┃ ╚══ virtio
┣━━ distro
┃ ╠══ fedora
┃ ╚══ mint
┗━━ env
╠══ debug
╚══ prod
I will fix the docs to make it clearer that line numbers are not a part of the example file.
----- Original Message -----
> From: "Olav Philipp Henschel" <olavph at linux.vnet.ibm.com>
> To: avocado-devel at redhat.com
> Sent: Wednesday, November 18, 2015 3:55:40 PM
> Subject: [Avocado-devel] Multiplex configuration failing
>
> Hi,
>
> I am trying to create a multiplex configuration file by following the
> guide in
> http://avocado-framework.readthedocs.org/en/latest/MultiplexConfig.html
> I cannot do it even with simple files. When I try the command using an
> example file provided with avocado:
>
> ./avocado multiplex --tree ../examples/mux-environment.yaml
>
> It outputs:
>
> Invalid multiplex file '../examples/mux-environment.yaml': unacceptable
> character #x0000: control characters are not allowed
> in "../examples/mux-environment.yaml", position 484
>
> That position is always the character count of the file, i.e. EOF position.
>
>
> Any help is appreciated,
> Olav P. Henschel
> IBM Brazil
>
> _______________________________________________
> Avocado-devel mailing list
> Avocado-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/avocado-devel
>
More information about the Avocado-devel
mailing list