-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from jsuchome/master
use timezone data from/etc/localtime if available (bnc#773491) I hope it can be merged, even if not perfect.
- Loading branch information
Showing
6 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.22.7 | ||
2.22.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Read .target.symlink "/etc/localtime" "/usr/share/zoneinfo/Europe/Berlin" | ||
Read .etc.adjtime ["0", "0", "UTC"] | ||
Return $["hwclock":"UTC", "timezone":"Europe/Berlin"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/** | ||
* tests for Timezone.ycp constructor | ||
* Author: jsuchome@suse.cz | ||
* $Id$ | ||
*/ | ||
{ | ||
|
||
// testedfiles: Timezone.ycp | ||
|
||
import "Testsuite"; | ||
|
||
map READ = $[ | ||
"sysconfig" : $[ | ||
"clock" : $[ | ||
"TIMEZONE" : "Europe/Prague", | ||
"HWCLOCK" : "-u", | ||
], | ||
], | ||
"target" : $[ | ||
"size" : 1, | ||
"yast2" : $[], | ||
"lstat" : $[ | ||
"islink" : true | ||
], | ||
"symlink" : "/usr/share/zoneinfo/Europe/Berlin", | ||
], | ||
"etc" : $[ | ||
"adjtime" : [ | ||
"0", | ||
"0", | ||
"UTC" ] | ||
], | ||
]; | ||
map EXECUTE = $[ | ||
"target" : $[ | ||
"bash_output" : $[], | ||
], | ||
]; | ||
|
||
|
||
|
||
Testsuite::Init([READ,$[],EXECUTE], nil); | ||
|
||
import "Timezone"; | ||
|
||
Testsuite::Test (``(Timezone::Export ()), [], nil); | ||
} |