From 0f4fbe3a584f15864b4c8f1e68a37a97bf3aea16 Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Mon, 11 Jan 2021 07:40:41 +0100 Subject: [PATCH] Some improvements --- gitsubup | 3 +++ mkunittest | 9 ++++----- 2 files changed, 7 insertions(+), 5 deletions(-) create mode 100755 gitsubup diff --git a/gitsubup b/gitsubup new file mode 100755 index 0000000..1b507ef --- /dev/null +++ b/gitsubup @@ -0,0 +1,3 @@ +#!/bin/sh +# +git submodule foreach git checkout master && git submodule foreach git pull \ No newline at end of file diff --git a/mkunittest b/mkunittest index ddd195d..978d023 100755 --- a/mkunittest +++ b/mkunittest @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: UTF-8 -*- import os @@ -137,12 +137,12 @@ def testrun(tcl): with open('.gitignore', 'w') as fh: fh.write(gitignore) os.mkdir('docs') -os.mkdir('examples') -os.symlink('../pylibs/%s' % name, 'examples/%s' % name) +os.symlink('../pylibs/%s' % name, 'docs/%s' % name) os.mkdir('pylibs') os.mkdir('requirements') os.mkdir('unittest') -os.symlink('../pylibs/unittest/unittest_flow.sh', 'unittest/unittest.sh') +os.symlink('../pylibs/unittest/scripts/unittest.sh', 'unittest/unittest.sh') +os.symlink('../pylibs/unittest/scripts/unittest.py', 'unittest/unittest.py') os.mkdir('unittest/input_data') os.mkdir('unittest/output_data') os.mkdir('unittest/src') @@ -155,4 +155,3 @@ for lib_name in [name, 'report', 'unittest', 'fstools', 'reqif']: os.mkdir('unittest/src/tests') with open('unittest/src/tests/__init__.py', 'w') as fh: fh.write(test_init_py) -