From 7fd9c2b30fe06e41a4d64f0a822242ff4040d081 Mon Sep 17 00:00:00 2001 From: Hsiao-nan Cheung Date: Thu, 21 Mar 2019 10:36:28 +0800 Subject: [PATCH] Do not test decompress if not change --- test/Scoop-Decompress.Tests.ps1 | 2 +- test/bin/test.ps1 | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/Scoop-Decompress.Tests.ps1 b/test/Scoop-Decompress.Tests.ps1 index 7e5f9f8cae..c0e1eee288 100644 --- a/test/Scoop-Decompress.Tests.ps1 +++ b/test/Scoop-Decompress.Tests.ps1 @@ -21,7 +21,7 @@ function test_extract($extract_fn, $from, $recurse) { $to } -Describe "Decompression function" -Tag 'Scoop' { +Describe "Decompression function" -Tag 'Scoop', 'Decompress' { BeforeAll { $working_dir = setup_working "decompress" } diff --git a/test/bin/test.ps1 b/test/bin/test.ps1 index b6f1060c2a..bd16601a93 100644 --- a/test/bin/test.ps1 +++ b/test/bin/test.ps1 @@ -32,9 +32,10 @@ if ($env:CI -eq $true) { $excludes += 'Scoop' } - $changed_scripts = (Get-GitChangedFile -Include 'decompress.ps1' -Commit $commit) + $changed_scripts = (Get-GitChangedFile -Include '*decompress.ps1' -Commit $commit) if (!$changed_scripts) { Write-Warning "Skipping tests and code linting for decompress.ps1 files because it didn't change" + Write-Host (Get-GitChangedFile -Commit $commit) $excludes += 'Decompress' }