aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-05-04 00:35:46 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-05-04 00:35:46 +0200
commitdde4b6795a7848fd25b3f2db7cf5f60e19dbfa59 (patch)
tree13cbe8f9eb23230ad4fd6a7f22c3160ad942314e
parentfa6a1c3837568034f050fdd6d7442ef3ee22ec4b (diff)
downloadsbotools2-dde4b6795a7848fd25b3f2db7cf5f60e19dbfa59.tar.xz
sbofind: change queue order so it's not reversed. fix tests accordingly
-rwxr-xr-xsbofind2
-rwxr-xr-xt/17-find.t2
2 files changed, 2 insertions, 2 deletions
diff --git a/sbofind b/sbofind
index 9db47ba..1e73d78 100755
--- 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
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!/ };