Sanitize the hardlink test size thing
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 6 Mar 2013 12:07:11 +0000 (14:07 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 7 Jun 2013 07:26:31 +0000 (10:26 +0300)
- The previous "echo $0" got actually expanded to the temporary
  build-time script name, something like /var/tmp/rpm-tmp.UtGhG1,
  which isn't what we're interested in, and depends on rpm
  configuration so can easily cause false positives. Just use
  %{name}-%{version} to get stable content.
(cherry picked from commit 9e918abb4c6d577f3aae2a1a1abd0f4e67f2d151)

tests/data/SPECS/hlinktest.spec
tests/rpmbuild.at

index 7c22d29..f21cae0 100644 (file)
@@ -12,7 +12,7 @@ rm -rf %{buildroot}
 mkdir -p $RPM_BUILD_ROOT/foo
 cat << EOF >> $RPM_BUILD_ROOT/foo/hello
 #!/bin/sh
-echo $0
+echo %{name}-%{version}
 EOF
 
 cd $RPM_BUILD_ROOT/foo
index 7661e35..6230903 100644 (file)
@@ -148,7 +148,7 @@ ls -i "${RPMTEST}"/foo/hello* | awk {'print $1'} | sort -u | wc -l
 4 /foo/hello-bar
 4 /foo/hello-foo
 4 /foo/hello-world
-78
+58
 1
 ],
 [])