Suppress tar(1)'s output (#6694)

Suppress tar(1)'s output (#6694)

From 3ae4c9ab6d07e91b52c5451b26c1c7940b83a6ad Mon Sep 17 00:00:00 2001
From: Drew Stephens <drew@dinomite.net>
Date: Wed, 28 Nov 2018 11:32:19 -0500
Subject: [PATCH] Suppress tar(1)'s output (#6694)


diff --git a/spec/components/theme_store/tgz_importer_spec.rb b/spec/components/theme_store/tgz_importer_spec.rb
index 693074a..5464d84 100644
--- a/spec/components/theme_store/tgz_importer_spec.rb
+++ b/spec/components/theme_store/tgz_importer_spec.rb
@@ -23,7 +23,7 @@ describe ThemeStore::TgzImporter do
       FileUtils.mkdir('test/a')
       File.write("test/a/inner", "hello world inner")
 
-      `tar -cvzf test.tar.gz test/*`
+      `tar -cvzf test.tar.gz test/* 2> /dev/null`
     end
 
     importer = ThemeStore::TgzImporter.new("#{@temp_folder}/test.tar.gz")

GitHub

1 Like