Hi Martin,
when I started to maintain beakerlib rlGetArch was already pronounced deprecated. Personally I still use rlGetArch.
rlGetArch do "normalization" which can cause troubles as returned architecture may not match the arch used in rpms. So it depends on actual usecase. As it is documented, rlGetArch 'eats' i*86 and ppc64 and produces i386 and ppc respectively.
At the same time there's no reason why rlGetPrimaryArch should produce error. On systems where the multilib concept is not supported it should just print info, if any, and return the only arch it supports while rlGetSecondaryArch should print error and produce non-zero exit code.
Can you file a bug for this at https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&component=beakerlib ?
This should be easyfix so it could get into next release which I'm going to release soon.
Dalibor
Excerpts from Martin Korbel's message of 2016-10-04 12:37 +00:00:Hi folks, Does exist any clean alternatives for rlGetArch on Fedora? We are using rlGetPrimaryArch on the RHEL systems, but we get error on Fedora. version: beakerlib-1.11-1I'm not sure if any Beakerlib developers are on this list... I have cc'ed Dalibor directly, hopefully he can give some suggestions on this. It does indeed seem like rlGetArch and rlGetPrimaryArch are giving contradictory warnings on Fedora...=== RHEL ===rlGetArch:: [ 08:22:14 ] :: [ WARNING ] :: rlGetArch: This function is deprecated BEAKERLIB_JOURNAL not defined in the environment :: [ 08:22:14 ] :: [ WARNING ] :: rlGetArch: Update test to use rlGetPrimaryArch/rlGetSecondaryArch BEAKERLIB_JOURNAL not defined in the environment x86_64rlGetPrimaryArchx86_64 === Fedora ===rlGetArch:: [ 08:23:54 ] :: [ WARNING ] :: rlGetArch: This function is deprecated BEAKERLIB_JOURNAL not defined in the environment :: [ 08:23:55 ] :: [ WARNING ] :: rlGetArch: Update test to use rlGetPrimaryArch/rlGetSecondaryArch BEAKERLIB_JOURNAL not defined in the environment x86_64rlGetPrimaryArch:: [ 08:23:58 ] :: [ ERROR ] :: rlGetPrimaryArch: Concept of primary and secondary architectures is defined on RHEL only BEAKERLIB_JOURNAL not defined in the environment x86_64