forked from Open-CMSIS-Pack/cmsis-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
73 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,3 @@ | ||
*** Settings *** | ||
Documentation Initailization for the robot tests in this directory | ||
Documentation Initialization for the robot tests in this directory | ||
Test Timeout 10 minutes | ||
# Library OperatingSystem | ||
# Resource ./global.robot | ||
# Resource ${RESOURCES}/utils.resource | ||
# Suite Setup Global Setup | ||
# Suite Teardown Global Teardown | ||
# *** Keywords *** | ||
# Global Setup | ||
# ${parent_dir}= Join Path ${CURDIR} .. | ||
# ${src_dir}= Join Path ${parent_dir} data | ||
# ${dest_dir}= Get Test Data directory | ||
# Set Global Variable ${TEST_DATA_DIR} ${dest_dir} | ||
# Copy Directory ${src_dir} ${dest_dir} | ||
# Global Teardown | ||
# Remove Directory with Content ${TEST_DATA_DIR} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import glob | ||
from pathlib import Path | ||
|
||
def glob_files_in_directory(directory:str, pattern: str, recursive: bool): | ||
yaml_files = glob.glob(directory + '/**/' + pattern, recursive=recursive) | ||
return yaml_files | ||
|
||
def get_parent_directory_name(file_path:str): | ||
parent_dir = Path(file_path).parent | ||
return parent_dir.name | ||
|
||
def get_parent_directory_path(file_path:str): | ||
return Path(file_path).parent.absolute() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters