diff options
author | Jose Castillo <jcastillo@redhat.com> | 2014-07-01 15:51:07 +0200 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-07-03 01:32:16 -0700 |
commit | 3df72ddcdb371c441b5535ad802fc59a794e3ac9 (patch) | |
tree | fed6ace7b9de6edc76b4e90f004fce710267e34b /tests | |
parent | 5723645715ae25c2de1bbdde1cf793e194e69eff (diff) |
Avoid hard-coded x86_64 arch in tests/basic/rpm.t
tests/basic/rpm.t hard-codes x86_64 to pick the build-root for mock, causing
errors when called from a different architecture. With this patch, we use
'uname -i' to select the right architecture.
v2: Fixed typo as suggested by Justin Clift.
Change-Id: I07bc2af9317dc315bca460149ea3430071537780
BUG: 962169
Signed-off-by: Jose Castillo <jcastillo@redhat.com>
Reviewed-on: http://review.gluster.org/8214
Reviewed-by: Vikhyat Umrao <vumrao@redhat.com>
Reviewed-by: Justin Clift <justin@gluster.org>
Reviewed-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Lalatendu Mohanty <lmohanty@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/basic/rpm.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/basic/rpm.t b/tests/basic/rpm.t index cea56ced6a3..bdc23b2d04f 100755 --- a/tests/basic/rpm.t +++ b/tests/basic/rpm.t @@ -75,8 +75,8 @@ TEST make dist # build the glusterfs src.rpm TEST build_srpm_from_tgz ${PWD}/*.tar.gz -# build for the last two Fedora EPEL releases (x86_64 only) -for MOCK_CONF in $(ls -x1 /etc/mock/*.cfg | egrep -e 'epel-[0-9]+-x86_64.cfg$' | tail -n2) +# even though the last two Fedora EPEL releases are x86_64 only, we allow other arches to build +for MOCK_CONF in $(ls -x1 /etc/mock/*.cfg | egrep -e 'epel-[0-9]+-'`uname -i`'.cfg$' | tail -n2) do EPEL_RELEASE=$(basename ${MOCK_CONF} .cfg) mkdir -p "${PWD}/mock.d/${EPEL_RELEASE}" |