mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-02 02:47:48 +02:00
Providing a fix for issue #2267
1. The script API "map_file" attribute has been changed
to accept and supply nil (for no file), a string (for
a file, empty is equivalent to "no file") and a list
for multiple files which are merged. The split at "+"
or "," has been dropped.
2. The strm* tools option ("--lefdef-map") has been changed
to allow multiple occurances instead of split at "+" or ",".
This commit is contained in:
Vendored
+7
-1
@@ -370,9 +370,15 @@ class DBReaders_TestClass < TestBase
|
||||
conf.separate_groups = true
|
||||
assert_equal(conf.separate_groups, true)
|
||||
|
||||
assert_equal(conf.map_file, "")
|
||||
assert_equal(conf.map_file, nil)
|
||||
conf.map_file = "xyz.map"
|
||||
assert_equal(conf.map_file, "xyz.map")
|
||||
conf.map_file = nil
|
||||
assert_equal(conf.map_file, nil)
|
||||
conf.map_file = ""
|
||||
assert_equal(conf.map_file, nil)
|
||||
conf.map_file = [ "abc.map", "uvw.map" ]
|
||||
assert_equal(conf.map_file, [ "abc.map", "uvw.map" ])
|
||||
|
||||
assert_equal(conf.lef_files.join(","), "")
|
||||
conf.lef_files = [ "u.lef", "v.lef" ]
|
||||
|
||||
Reference in New Issue
Block a user