search for: assert_config

Displaying 5 results from an estimated 5 matches for "assert_config".

2017 Nov 14
1
Re: [PATCH v12 3/3] New tool: virt-builder-repository
...+[fedora] > +file=fedora.img > +EOF > + > +# Run virt-builder-repository (no compression, interactive) > +echo 'x86_64 > +Fedora Test Image > +fedora14 > +/dev/sda1 > +/dev/VG/Root > +' | virt-builder-repository -v -x --no-compression -i $test_data > + > +assert_config () { > + item=$1 > + regex=$2 > + > + sed -n -e "/\[$item]/,/^$/p" $test_data/index | grep "$regex" > +} > + > +# Check the generated index file > +assert_config 'fedora' 'revision=1' > +assert_config 'fedora' 'arch...
2017 Nov 13
6
[PATCH v12 0/3] virt-builder-repository tool
Hi there! Here is the latest version of the series including Richard's comments. I also reworked the repository_main.ml code to avoid setting an empty entry if not found. Cédric Bosdonnat (3): builder: change arch type to distinguish guesses builder: add a template parameter to get_index New tool: virt-builder-repository .gitignore | 4 +
2017 Nov 13
0
[PATCH v12 3/3] New tool: virt-builder-repository
...minimal index file +cat > $test_data/index << EOF +[fedora] +file=fedora.img +EOF + +# Run virt-builder-repository (no compression, interactive) +echo 'x86_64 +Fedora Test Image +fedora14 +/dev/sda1 +/dev/VG/Root +' | virt-builder-repository -v -x --no-compression -i $test_data + +assert_config () { + item=$1 + regex=$2 + + sed -n -e "/\[$item]/,/^$/p" $test_data/index | grep "$regex" +} + +# Check the generated index file +assert_config 'fedora' 'revision=1' +assert_config 'fedora' 'arch=x86_64' +assert_config 'fedora'...
2017 Nov 21
5
[PATCH v13 0/3] virt-builder-repository
Hey there, Here is an update of the series. The changes: * Incorporate Richard's comments. Left out the with_openfile one since that leads to a double close. * Change the ask option return type to string (removing the option) since if the use doesn't input anything we're using the default, and the default is now a mandatory parameter. * Make sure there are items in the
2017 Oct 27
15
[PATCH v11 0/8] virt-builder-repository
Hi all, Here is the latest version of the series. Diffs to v10: * Make Index.arch a (string, string option) maybe and use it to guess arch at parse time * Compute the image size at parse time when the template flag is set and the value is missing. * Add virt-repository_main slow test * Other fixes from Richard's comments Cédric Bosdonnat (7): Ignore builder/*.out and *.img