Logo
Explore Help
Sign In
NuKVM/vagrant-libvirt
3
0
Fork 0
You've already forked vagrant-libvirt
mirror of https://github.com/vagrant-libvirt/vagrant-libvirt.git synced 2025-02-25 18:55:27 -06:00
Code Issues Packages Projects Releases Wiki Activity
Files
f5e22f8547e3bfc822f71a36de65fb88a77ecfe6
vagrant-libvirt/spec/support/acceptance/configuration.rb

22 lines
409 B
Ruby
Raw Normal View History

Migrate acceptance tests to rspec (#1513) Move existing tests executed with the help of bats to use rspec directly combined with tags to filter them out from being executed by default. This allows for more complex assertions as well as easier debug as the code supports use of setting 'VAGRANT_SPEC_SKIP_CLEANUP' to prevent the tests from removing the temporary directory created for home and work directories. Extend a number of classes from vagrant-spec to override default behaviour to allow passing of additional environment variables for packaging tests, as well as supporting the skip cleanup. Given the use of after to perform the cleanup, need to vendor the vagrant-spec acceptance context in order to modify it easily.
2022-06-13 23:43:06 +01:00
# frozen_string_literal: true
require 'vagrant-spec/acceptance/configuration'
module VagrantPlugins
module VagrantLibvirt
module Spec
module Acceptance
class Configuration < Vagrant::Spec::Acceptance::Configuration
attr_accessor :clean_on_fail
def initialize
super
@clean_on_fail = true
end
end
end
end
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 22ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API