changing back the gem and test plus travis

This commit is contained in:
root
2019-09-20 07:58:21 +00:00
parent ad3927485c
commit 731527e259
3 changed files with 3 additions and 14 deletions

View File

@@ -21,3 +21,6 @@ addons:
- zlib1g-dev
- liblzma-dev
- libcurl4-openssl-dev
script:
- bundle exec rake build
- bundle exec rake builddoc

13
Gemfile
View File

@@ -77,19 +77,6 @@ end
# For running unit tests
group :test do
if defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby"
module Kernel
alias :_at_exit :at_exit
def at_exit(&block)
_at_exit do
exit_status = $!.status if $!.is_a?(SystemExit)
block.call
exit exit_status if exit_status
end
end
end
end
if ENV['BEEF_TEST']
gem 'test-unit'
gem 'test-unit-full'

View File

@@ -34,7 +34,6 @@ class TC_Filesystem < Test::Unit::TestCase
user_cred=YAML.load_file(test_file)
x= user_cred['beef']['credentials']
assert_equal({"passwd"=>"beef", "user"=>"beef"}, x, 'The default creds are not set' )
exit 1
end
def test_install_file