diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-05-04 00:35:46 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-05-04 00:35:46 +0200 |
commit | dde4b6795a7848fd25b3f2db7cf5f60e19dbfa59 (patch) | |
tree | 13cbe8f9eb23230ad4fd6a7f22c3160ad942314e | |
parent | fa6a1c3837568034f050fdd6d7442ef3ee22ec4b (diff) | |
download | sbotools2-dde4b6795a7848fd25b3f2db7cf5f60e19dbfa59.tar.xz |
sbofind: change queue order so it's not reversed. fix tests accordingly
-rwxr-xr-x | sbofind | 2 | ||||
-rwxr-xr-x | t/17-find.t | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 index 0fde35e..20e8e8c 100755 --- 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!/ }; |