gh repo create $ORG/$MODULE_NAME --template $ORG/module-template --private -y
gh repo create $ORG/$MODULE_NAME-test --template $ORG/test-template --private -y
+
+gh repo clone $ORG/$MODULE_NAME
+gh repo clone $ORG/$MODULE_NAME-test
+
+cd $MODULE_NAME-test
+./init_tests.sh $MODULE_NAME
+git commit -am "initilised $MODULE_NAME-test from template"
+git push
+cd ..
+
# removing the local test dir, since we'll add it as a submodule later
rm -rf $MODULE_NAME-test
cd $MODULE_NAME
./init_module.sh $MODULE_NAME
+git commit -am "initilised $MODULE_NAME from template"
git submodule add git@github.com:$ORG/$MODULE_NAME-test
-cd $MODULE_NAME-test
-./init_tests.sh $MODULE_NAME
-cd ..
git commit -am "added $MODULE_NAME-test submodule"
git push