[Avocado-devel] Unexpected conversion of yaml content to ListOfNodeObjects

Lukáš Doktor ldoktor at redhat.com
Wed Feb 15 13:18:10 UTC 2017


Hello Vincent,

I'm able to reproduce that with your docker file so I'll do my best to 
find the root cause and fix it.

Regards,
Lukáš

Dne 13.2.2017 v 19:44 Vincent Matossian napsal(a):
> FROM centos:7
>
> RUN yum install -y epel-release
> RUN yum install -y python-pip
> RUN pip install avocado-framework
> RUN pip install -r
> https://raw.githubusercontent.com/avocado-framework/avocado/master/requirements.txt
>
> RUN echo $'#!/bin/env python\n\
> import yaml\n\
> \n\
> from avocado import Test\n\
> \n\
> \n\
> class MyTest(Test):\n\
> \n\
>     def test(self):\n\
>         with open("some.yaml") as f:\n\
>             d = yaml.load(f)\n\
>         print(type(d))\n\
>         print(d)\n\
> \n' > mytest.py
>
> RUN echo $'key1:\n\
>   subkey: subval\n\
> key2:\n\
>   subkey: subval\n\
> \n' > some.yaml
>
> RUN touch empty.yaml
> RUN chmod +x mytest.py
>
>
> ENTRYPOINT ["avocado", "run", "--show-job-log", "mytest.py",
> "--mux-yaml", "empty.yaml"]

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 502 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/avocado-devel/attachments/20170215/947f4c5f/attachment.sig>


More information about the Avocado-devel mailing list