diff --git a/behave/features/build.feature b/behave/features/build.feature
new file mode 100644
index 00000000..a00359ad
--- /dev/null
+++ b/behave/features/build.feature
@@ -0,0 +1,13 @@
+Feature: `osc build` command
+
+
+# common steps for all scenarios
+Background:
+ Given I set working directory to "{context.osc.temp}"
+ And I execute osc with args "co test:factory/test-pkgA"
+ And I set working directory to "{context.osc.temp}/test:factory/test-pkgA"
+
+
+Scenario: Run `osc build --just-print-buildroot`
+ When I execute osc with args "build --just-print-buildroot"
+ Then the exit code is 0
diff --git a/behave/fixtures/prj/test_factory.xml b/behave/fixtures/prj/test_factory.xml
index be13ebed..7fc31d67 100644
--- a/behave/fixtures/prj/test_factory.xml
+++ b/behave/fixtures/prj/test_factory.xml
@@ -5,6 +5,10 @@
+
+
+
+
diff --git a/osc/obs_api/simple_flag.py b/osc/obs_api/simple_flag.py
index e778ce9a..6544bb35 100644
--- a/osc/obs_api/simple_flag.py
+++ b/osc/obs_api/simple_flag.py
@@ -5,8 +5,8 @@ class SimpleFlag(XmlModel):
XML_TAG = None
XML_TAG_FIELD = "flag"
- def __init__(self, flag):
- super().__init__(flag=flag)
+ def __init__(self, flag, **kwargs):
+ super().__init__(flag=flag, **kwargs)
class SimpleFlagChoices(Enum):
ENABLE = "enable"