build_rpm: print out nevra rather than just name

It's more precise and makes it possible to find out if e.g. pkg
upgrades made it to the tree.

Closes: #859
Approved by: cgwalters
This commit is contained in:
Jonathan Lebon 2017-07-04 10:04:07 -07:00 committed by Atomic Bot
parent 14431f7f09
commit 970a20974b
2 changed files with 2 additions and 2 deletions

View File

@ -407,7 +407,7 @@ BuildArch: $arch
# by default, we create a /usr/bin/$name script which just outputs $name
%build
echo -e "#!/bin/sh\necho $name" > $name
echo -e "#!/bin/sh\necho $name-$version-$release.$arch" > $name
chmod a+x $name
$build

View File

@ -66,7 +66,7 @@ vm_assert_layered_pkg foo-1.0 present
echo "ok pkg foo added"
output=$(vm_cmd /usr/bin/foo)
if [[ $output != foo ]]; then
if [[ $output != foo-1.0-1.x86_64 ]]; then
assert_not_reached "foo printed wrong output"
fi
echo "ok correct output"