mirror of https://github.com/KLayout/klayout.git
Fixing tests for non-Qt builds
This commit is contained in:
parent
cd34125b0c
commit
7997d1375c
|
|
@ -37,6 +37,9 @@ class PluginFactory < RBA::PluginFactory
|
|||
end
|
||||
end
|
||||
|
||||
has_qt = RBA.constants.member?(:EditorOptionsPage) && RBA.constants.member?(:MainWindow)
|
||||
if has_qt
|
||||
|
||||
class Plugin2EditorOptionsPage < RBA::EditorOptionsPage
|
||||
def initialize
|
||||
super("title", 1)
|
||||
|
|
@ -174,5 +177,13 @@ class LayPlugin_TestClass < TestBase
|
|||
|
||||
end
|
||||
|
||||
else
|
||||
|
||||
# at least one test is needed
|
||||
class LayPlugin_TestClass < TestBase
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
load("test_epilogue.rb")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue