diff options
author | Slack Coder <slackcoder@server.ky> | 2025-01-09 14:00:22 -0500 |
---|---|---|
committer | Slack Coder <slackcoder@server.ky> | 2025-01-10 13:16:56 -0500 |
commit | 85c4f4ec3221123f66447acff60415e9a2cbf083 (patch) | |
tree | d6a8349929c18f555075d5e97eefd0acaee9c971 /t/Test/Sbotools.pm | |
parent | 5cda2ca28fef1d91918b0e34be40e1ad7f4aee26 (diff) | |
download | sbotools2-85c4f4ec3221123f66447acff60415e9a2cbf083.tar.xz |
Fix and use Docker for testing
Document testing and provide a docker file for others to use. Also fix
some breaking tests for 15.0.
Diffstat (limited to 't/Test/Sbotools.pm')
-rw-r--r-- | t/Test/Sbotools.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/Test/Sbotools.pm b/t/Test/Sbotools.pm index 7c6d98b..8be5536 100644 --- a/t/Test/Sbotools.pm +++ b/t/Test/Sbotools.pm @@ -62,11 +62,11 @@ sub set_repo { _set_config('REPO', @_); if (-e "/usr/sbo/repo" and not $repo) { $repo = 1; - rename '/usr/sbo/repo', "$RealBin/repo.backup"; + system('mv', '/usr/sbo/repo', "/tmp/repo.backup"); # if $sbt is true, the SLACKBUILDS.TXT has been created by # make_slackbuilds_txt and should not be backed up - if ($sbt) { system('rm', "$RealBin/repo.backup/SLACKBUILDS.TXT"); } + if ($sbt) { system('rm', "/tmp/repo.backup/SLACKBUILDS.TXT"); } } } @@ -142,7 +142,7 @@ END { } if ($repo) { system(qw! rm -rf /usr/sbo/repo !); - rename "$RealBin/repo.backup", "/usr/sbo/repo"; + system('mv', "/tmp/repo.backup", '/usr/sbo/repo'); } if ($tags) { system(qw!rm -rf !, $tags_txt); |