diff options
| author | Slack Coder <slackcoder@server.ky> | 2025-01-23 16:28:08 -0500 | 
|---|---|---|
| committer | Slack Coder <slackcoder@server.ky> | 2025-01-29 06:27:23 -0500 | 
| commit | 6ebf3cd77a7aa308a5bc933727eb3255d8dd8a4b (patch) | |
| tree | baf194e3f0ffb568b7d2f00bdfd8168e81b770a9 /t | |
| parent | 921e9a76f1ca47d30d765f2f2bf61954e8ac9c9c (diff) | |
| download | sbotools2-6ebf3cd77a7aa308a5bc933727eb3255d8dd8a4b.tar.xz | |
Improve GPG verification handling
Diffstat (limited to 't')
| -rwxr-xr-x | t/13-local-check.t | 5 | ||||
| -rwxr-xr-x | t/28-race-sboremove.t | 4 | 
2 files changed, 7 insertions, 2 deletions
| diff --git a/t/13-local-check.t b/t/13-local-check.t index 36c8e10..cb241e1 100755 --- a/t/13-local-check.t +++ b/t/13-local-check.t @@ -7,7 +7,7 @@ use Test::More;  use Capture::Tiny qw/ capture_merged /;  use FindBin '$RealBin';  use lib $RealBin; -use Test::Sbotools qw/ make_slackbuilds_txt set_lo set_repo sbosnap sbocheck sboinstall sbofind restore_perf_dummy /; +use Test::Sbotools qw/ make_slackbuilds_txt set_lo set_repo sboconfig sbosnap sbocheck sboinstall sbofind restore_perf_dummy /;  if ($ENV{TEST_INSTALL} and $ENV{TRAVIS}) {  	plan tests => 14; @@ -72,6 +72,9 @@ setup_gitrepo();  set_repo("file://$RealBin/gitrepo/");  restore_perf_dummy(); +# Disable GPG verification +sboconfig(qw/ --gpg-key FALSE /, { test => 0 } ); +  # 1-2: sbofind without having a repo yet  sbofind 'nonexistentslackbuild', { input => "n", expected => qr/It looks like you haven't run "sbosnap fetch" yet\.\nWould you like me to do this now\?.*Please run "sbosnap fetch"/ };  sbofind 'nonexistentslackbuild', { input => "y", expected => qr/It looks like you haven't run "sbosnap fetch" yet\.\nWould you like me to do this now\?/ }; diff --git a/t/28-race-sboremove.t b/t/28-race-sboremove.t index 3c7e026..65eaa5d 100755 --- a/t/28-race-sboremove.t +++ b/t/28-race-sboremove.t @@ -10,7 +10,7 @@ use Capture::Tiny qw/ capture_merged /;  use File::Temp 'tempdir';  use Cwd;  use feature 'state'; -use Test::Sbotools qw/ set_repo set_lo sboinstall sbosnap load /; +use Test::Sbotools qw/ set_repo set_lo sboconfig sboinstall sbosnap load /;  if ($ENV{TEST_INSTALL}) {  	plan tests => 2; @@ -31,6 +31,8 @@ git add test  git commit -m 'first commit'  GIT  set_repo("file://$tempdir"); + +sboconfig qw/ --gpg-key FALSE /, { test => 0 };  sbosnap 'fetch', { test => 0 };  # install the readme slackbuild | 
