diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2022-01-01 18:09:35 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2022-01-01 18:09:35 +0000 |
commit | b9de4d5e810d07b679ad9ab9e46d58e4c76213cc (patch) | |
tree | b69c6b84b9ce025d6f7afd92d734452757f4f365 /tests/subplots/common/runcmd_test.py | |
parent | 95b3d27d27a8dab7cb8a5136000a2331ab9b4a4a (diff) | |
download | subplot-b9de4d5e810d07b679ad9ab9e46d58e4c76213cc.tar.gz |
tests: Make runcmd.md a common test set now
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'tests/subplots/common/runcmd_test.py')
-rw-r--r-- | tests/subplots/common/runcmd_test.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/subplots/common/runcmd_test.py b/tests/subplots/common/runcmd_test.py new file mode 100644 index 0000000..4aa5f49 --- /dev/null +++ b/tests/subplots/common/runcmd_test.py @@ -0,0 +1,15 @@ +import os + + +def create_script_from_embedded(ctx, filename=None, embedded=None): + files_create_from_embedded_with_other_name = globals()[ + "files_create_from_embedded_with_other_name" + ] + + # Create the file. + files_create_from_embedded_with_other_name( + ctx, filename_on_disk=filename, embedded_file=embedded + ) + + # Make the new file executable. + os.chmod(filename, 0o755) |