sbotools2

Maintenance fork of the original sbotools version 2
Log | Files | Refs | README

commit dde4b6795a7848fd25b3f2db7cf5f60e19dbfa59
parent fa6a1c3837568034f050fdd6d7442ef3ee22ec4b
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date:   Wed,  4 May 2016 00:35:46 +0200

sbofind: change queue order so it's not reversed. fix tests accordingly

Diffstat:
Msbofind | 2+-
Mt/17-find.t | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sbofind b/sbofind @@ -145,7 +145,7 @@ sub get_file_contents { sub show_build_queue { script_error('show_build_queue requires an argument.') unless @_ == 1; my $queue = get_build_queue([shift], {}); - return join(" ", reverse @$queue); + return join(" ", @$queue); } my $findings = perform_search($search); diff --git a/t/17-find.t b/t/17-find.t @@ -25,7 +25,7 @@ replace_tags_txt("nonexistentslackbuild2: testingtag\n"); sbofind 'testingtag', { expected => qr!Local:\s+nonexistentslackbuild2\nPath:\s+\Q$RealBin/LO/nonexistentslackbuild2! }; # 4: show build queue -sbofind '-q', 'nonexistentslackbuild2', { expected => qr/Queue:\s+nonexistentslackbuild2 nonexistentslackbuild3/ }; +sbofind '-q', 'nonexistentslackbuild2', { expected => qr/Queue:\s+nonexistentslackbuild3 nonexistentslackbuild2/ }; # 5: show readme sbofind '-r', 'nonexistentslackbuild4', { expected => qr/README: \n This doesn't exist!/ };