convert examples/makebuildserver.config.py to Vagrantfile.yaml

Also, tests/androguard_test.py was removed long ago
This commit is contained in:
Hans-Christoph Steiner 2022-10-20 18:24:13 +02:00
parent abf535aabe
commit d6008cdb2a
No known key found for this signature in database
GPG key ID: 3E177817BA1B9BFA
4 changed files with 21 additions and 17 deletions

View file

@ -1,5 +1,6 @@
require 'yaml'
require 'pathname'
require 'fileutils'
configfile = {
'boot_timeout' => 600,
@ -14,9 +15,15 @@ configfile = {
srvpath = Pathname.new(File.dirname(__FILE__)).realpath
configpath = File.join(srvpath, "/Vagrantfile.yaml")
if File.exists? configpath
YAML.load_file(configpath).each do |k,v|
configfile[k] = v
c = YAML.load_file(configpath)
if c and not c.empty?
c.each do |k,v|
configfile[k] = v
end
end
else
puts "Copying example file to #{configpath}"
FileUtils.cp('../examples/Vagrantfile.yaml', configpath)
end
Vagrant.configure("2") do |config|