Avoid unnecessary use of 'id' in test-suite specs
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 1 Apr 2011 12:39:21 +0000 (15:39 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 1 Apr 2011 12:39:21 +0000 (15:39 +0300)
- We could just ditch the entire buildroot lines from the specs
  but leaving one case to test that we dont actually fail on specs
  that do have it.

tests/data/SPECS/foo.spec
tests/data/SPECS/hello.spec

index 986e6da..88d037e 100644 (file)
@@ -9,7 +9,7 @@ Provides: hi
 Conflicts: goodbye
 Obsoletes: howdy
 BuildArch: noarch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 
 %description
 Simple rpm demonstration.
index 066388f..7f5a92e 100644 (file)
@@ -16,7 +16,6 @@ Provides: hi
 Conflicts: goodbye
 Obsoletes: howdy
 Prefix: /usr
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 %description
 Simple rpm demonstration.