[master 2/2] Timezone kickstart tests.
KosiehBarter
installerbot-noreply at redhat.com
Wed Jul 8 13:16:00 UTC 2015
From: Karel Valek <kvalek at redhat.com>
Signed-off-by: Karel Valek <kvalek at redhat.com>
---
tests/kickstart_tests/timezoneLOCAL.ks | 6 +++---
tests/kickstart_tests/timezoneUTC.ks | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/tests/kickstart_tests/timezoneLOCAL.ks b/tests/kickstart_tests/timezoneLOCAL.ks
index 09009f0..0a1e48a 100644
--- a/tests/kickstart_tests/timezoneLOCAL.ks
+++ b/tests/kickstart_tests/timezoneLOCAL.ks
@@ -20,19 +20,19 @@ shutdown
%post
## UTC ZONE TEST
-# First, we need to run hwclock -D to get the time...
+# hwclock LOCAL test
hwclock -D | grep "Assuming hardware clock is kept in local time."
if [[ $? -ne 0 ]]; then
echo "FAILED: hwclock not set to LOCAL time." >> /root/RESULT
fi
-# ...and if it passes, let's check if the adjtime is correct.
+# cat adjtime LOCAL test
cat /etc/adjtime | grep LOCAL
if [[ $? -ne 0 ]]; then
echo "FAILED: Time in /etc/adjtime is not set to LOCAL." >> /root/RESULT
fi
-# If everything passes, give a pack of cookies to dev team.
+# everything passes
if [[ ! -e /root/RESULT ]]; then
echo SUCCESS > /root/RESULT
fi
diff --git a/tests/kickstart_tests/timezoneUTC.ks b/tests/kickstart_tests/timezoneUTC.ks
index a4a115e..f8e8cfe 100644
--- a/tests/kickstart_tests/timezoneUTC.ks
+++ b/tests/kickstart_tests/timezoneUTC.ks
@@ -20,19 +20,19 @@ shutdown
%post
## UTC ZONE TEST
-# First, we need to run hwclock -D to get the time...
+# hwclock -D UTC test
hwclock -D | grep "Assuming hardware clock is kept in UTC time."
if [[ $? -ne 0 ]]; then
echo "FAILED: hwclock not set to UTC.." >> /root/RESULT
fi
-# ...and if it passes, let's check if the adjtime is correct.
+# cat adjtime UTC test
cat /etc/adjtime | grep UTC
if [[ $? -ne 0 ]]; then
echo "FAILED: Time in /etc/adjtime not set to UTC." >> /root/RESULT
fi
-# If everything passes, give a pack of cookies to dev team.
+# everything passes
if [[ ! -e /root/RESULT ]]; then
echo SUCCESS > /root/RESULT
fi
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/8ec34128d38046ce35985fe3aaab2016ae857313
More information about the anaconda-patches
mailing list