Merge #8 tests/tzdata-checker: modify to resolve different glibcs zdump behavior
This commit is contained in:
commit
e454a593c0
@ -73,12 +73,13 @@ rlJournalStart
|
|||||||
|
|
||||||
rlPhaseStartSetup "Test zdump"
|
rlPhaseStartSetup "Test zdump"
|
||||||
for zone in `cat zones.int`; do
|
for zone in `cat zones.int`; do
|
||||||
rlRun "./zdump -v -c 1970,$hiyear $zone >ref"
|
if rlIsRHEL "<8"; then # glibc's zdump is out of sync for '-v option'
|
||||||
if uname -r | egrep -o -q '\.el5'; then # glibc's zdump is out of sync for RHEL5
|
rlRun "./zdump -v -c 1970,$hiyear $zone >ref"
|
||||||
rlRun "./zdump -v -c 1970,$hiyear /usr/share/zoneinfo/$zone >cur"
|
rlRun "./zdump -v -c 1970,$hiyear /usr/share/zoneinfo/$zone >cur"
|
||||||
sed -i 's|^/usr/share/zoneinfo/||' cur
|
sed -i 's|^/usr/share/zoneinfo/||' cur
|
||||||
else
|
else
|
||||||
rlRun "zdump -v -c 1970,$hiyear $zone >cur"
|
rlRun "./zdump -V -c 1970,$hiyear $zone >ref"
|
||||||
|
rlRun "zdump -V -c 1970,$hiyear $zone >cur"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# normalize zdump outputs
|
# normalize zdump outputs
|
||||||
|
Loading…
Reference in New Issue
Block a user