From be63d8a88fea44bebdbb399f95d7cf63feb960ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Tue, 1 Nov 2022 15:25:39 +0100 Subject: [PATCH 1/2] Mark box_collection_test to require bsdtar These tests implicitly require bsdtar and should be skipped if the binary is not available. --- test/unit/vagrant/box_collection_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/vagrant/box_collection_test.rb b/test/unit/vagrant/box_collection_test.rb index 0b325d9c5..aa801833c 100644 --- a/test/unit/vagrant/box_collection_test.rb +++ b/test/unit/vagrant/box_collection_test.rb @@ -3,7 +3,7 @@ require File.expand_path("../../base", __FILE__) require "pathname" require 'tempfile' -describe Vagrant::BoxCollection, :skip_windows do +describe Vagrant::BoxCollection, :skip_windows, :bsdtar do include_context "unit" let(:box_class) { Vagrant::Box } From 0b6faa613db1f451af1b6d0fac4a341e79eee81b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Tue, 1 Nov 2022 15:26:15 +0100 Subject: [PATCH 2/2] Install bsdtar in the CI The recent update to Ubuntu 20.04 from 18.04 resulted in bsdtar being dropped from the CI environment. This reduces our test coverage, so let's install it again. --- .github/workflows/testing.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 07579046a..7010e369e 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -41,5 +41,7 @@ jobs: with: ruby-version: ${{matrix.ruby}} bundler-cache: true + - name: install dependencies + run: sudo apt -y install libarchive-tools - name: Run Tests run: bundle exec rake test:unit