Commit f0e26764 authored by Drew's avatar Drew

Build the default target when running `atbuild --overlay foo`

Close #26
parent 743c09f8
Pipeline #769 failed with stage
......@@ -72,12 +72,14 @@ func runtask(taskName: String) {
}
//choose which task to run
var run = false
if Process.arguments.count > 1 {
if !Process.arguments[1].hasPrefix("--") {
run = true
runtask(Process.arguments[1])
}
}
else {
if !run {
runtask("default")
}
......
......@@ -13,9 +13,9 @@
// limitations under the License.
class Foo {
var b: String
var b: String = ""
#if GOT_OVERLAY
#else
var b: String //compile error
var b: String = "" //compile error
#endif
}
\ No newline at end of file
......@@ -58,4 +58,10 @@ fi
$ATBUILD --overlay got-overlay
cd $DIR/tests/fixtures/overlay_default
if $ATBUILD --overlay foo; then
echo "Expected a failure in overlay"
exit 1
fi
echo "***ATBUILD TEST SCRIPT PASSED SUCCESSFULLY*****"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment