History log of /openbmc/openbmc-test-automation/lib/gen_misc.py (Results 1 – 25 of 43)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 20f38712 08-Dec-2022 Patrick Williams <patrick@stwcx.xyz>

black: re-format

black and isort are enabled in the openbmc-build-scripts on Python files
to have a consistent formatting. Re-run the formatter on the whole
repository.

Signed-off-by: Patrick Will

black: re-format

black and isort are enabled in the openbmc-build-scripts on Python files
to have a consistent formatting. Re-run the formatter on the whole
repository.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I944f1915ece753f72a3fa654902d445a9749d0f9

show more ...


# e635ddc0 08-Dec-2022 George Keishing <gkeishin@in.ibm.com>

Revert "black: re-format"

This reverts commit 5731818de0ce446ceaafc7e75ae39da1b69942ae.

Signed-off-by: George Keishing <gkeishin@in.ibm.com>
Change-Id: Ie61cdc8c7f2825b0d9d66be87a6a3a058de2b372


# 5731818d 08-Dec-2022 Patrick Williams <patrick@stwcx.xyz>

black: re-format

black and isort are enabled in the openbmc-build-scripts on Python files
to have a consistent formatting. Re-run the formatter on the whole
repository.

Change-Id: If1010ead857d413

black: re-format

black and isort are enabled in the openbmc-build-scripts on Python files
to have a consistent formatting. Re-run the formatter on the whole
repository.

Change-Id: If1010ead857d41364c024bf8145a979a9377d382
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


Revision tags: robotframework-requests
# e7e9171e 03-Sep-2021 George Keishing <gkeishin@in.ibm.com>

Update python code for python 3.8 or higher compatibility

Changes:
- Update shebang directive to use python3 explicitly.
- remove preexec_fn feature which is deprecated in

Update python code for python 3.8 or higher compatibility

Changes:
- Update shebang directive to use python3 explicitly.
- remove preexec_fn feature which is deprecated in higher
python version 3.8 and above.
- bufsize fix, from documentation bufsize 1 means line buffered
(only usable if universal_newlines=True i.e., in a text mode)
refer: https://docs.python.org/3/library/subprocess.html
- Fix SyntaxWarning: "is" with "=="

Change-Id: Ib96c1ba8c2327d6774d0d731b48ca7e61a4a297a
Signed-off-by: George Keishing <gkeishin@in.ibm.com>

show more ...


Revision tags: v2.10-Hardknott, v2.8.0-stable
# 37cade8e 26-Mar-2020 Michael Walsh <micwalsh@us.ibm.com>

New rmtree wrapper function

Change-Id: Ie2585946c114ab97a75c0264c93197d27918e759
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>


# 1435b35b 27-Feb-2020 Michael Walsh <micwalsh@us.ibm.com>

makedirs py3 change: OSError

Change-Id: I597d163440603b2ec584196987dd01fa2a469d11
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>


# c4d6bce8 18-Feb-2020 Michael Walsh <micwalsh@us.ibm.com>

New gen_misc makedirs/chdir functions

Change-Id: Ib62a2e87d48ddaed58a9ddfe6618bab6d193234f
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>


# 05a7a6fb 12-Feb-2020 Michael Walsh <micwalsh@us.ibm.com>

New pause function

Change-Id: I0e0bc61543846a9d478e27d3f4e395f4f504085f
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>


# 111a8313 05-Dec-2019 Michael Walsh <micwalsh@us.ibm.com>

New append_file and create_temp_file_path

append_file: Append the data in buffer to the file named in file_path.

create_temp_file_path: Create a temporary file path and return it.

New append_file and create_temp_file_path

append_file: Append the data in buffer to the file named in file_path.

create_temp_file_path: Create a temporary file path and return it.

Change-Id: Ib5f7ec702ff72ca24c79ae4ae94dd8b37ba0e9cd
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>

show more ...


# 87353e3c 23-Oct-2019 Michael Walsh <micwalsh@us.ibm.com>

New get_python_version()

Change-Id: I8d371a2a804852069f16a5d1019f65fb96199d71
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>


# 410b1787 22-Oct-2019 Michael Walsh <micwalsh@us.ibm.com>

Change several python and robot files to 110 chars

Taking advantage of current team limit of 110 chars.

Change-Id: If7ab51fe894889967b8c8bb2f2fa4664f01117d5
Signed-off-by: Micha

Change several python and robot files to 110 chars

Taking advantage of current team limit of 110 chars.

Change-Id: If7ab51fe894889967b8c8bb2f2fa4664f01117d5
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>

show more ...


# 97081e82 20-Aug-2019 Michael Walsh <micwalsh@us.ibm.com>

Handle revision code in sys.version in gen_misc.py

This reverts commit 86a427d15430c4eeb2a82d7ebb8715c5e2f3f63e.

Change-Id: I6fe48b1104ae3bdd3c4fb3c23d42f7678ca3f670


# 86a427d1 20-Aug-2019 George Keishing <gkeishin@in.ibm.com>

Revert "New version_tuple function in gen_misc.py"

This reverts commit bb5d117d728f1c59e652c15846752242eee385db.

Change-Id: I5e21c8d0db4422234f34d2d1f05b4579142090bd


# bb5d117d 14-Aug-2019 Michael Walsh <micwalsh@us.ibm.com>

New version_tuple function in gen_misc.py

Also, set global values for use by others:

- python_version
- ordered_dict_version

Change-Id: Ibc0324105206214155766f5d092b5c5

New version_tuple function in gen_misc.py

Also, set global values for use by others:

- python_version
- ordered_dict_version

Change-Id: Ibc0324105206214155766f5d092b5c5385fc9eb8
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>

show more ...


Revision tags: v2.7-warrior-stable
# 0d5f96a4 20-May-2019 Michael Walsh <micwalsh@us.ibm.com>

Fix print_var calls: new fmt, indent, etc.

Changed print_var calls to correctly use new arguments:
- fmt
- indent
- col1_width

Change-Id: If80088d5b69865074fd510421b9

Fix print_var calls: new fmt, indent, etc.

Changed print_var calls to correctly use new arguments:
- fmt
- indent
- col1_width

Change-Id: If80088d5b69865074fd510421b918da7fd8e874e
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>

show more ...


# 2ce1dbae 05-Feb-2019 Michael Walsh <micwalsh@us.ibm.com>

Set and save stop_check_rc after each decision to stop test execution II

Change-Id: I7a8ca3df2b56c71746dd03fca0da054a2e9ba1fd


# 7e96b132 05-Feb-2019 Michael Walsh <micwalsh@us.ibm.com>

Revert "Set and save stop_check_rc after each decision to stop test execution"

This reverts commit c8483e3687aded01df097625a71a55075a326355.

Change-Id: I174d469085284843d306bef927b8

Revert "Set and save stop_check_rc after each decision to stop test execution"

This reverts commit c8483e3687aded01df097625a71a55075a326355.

Change-Id: I174d469085284843d306bef927b834fa4e27fafa

show more ...


Revision tags: v2.6-thud-stable
# c8483e36 23-Jan-2019 Michael Walsh <micwalsh@us.ibm.com>

Set and save stop_check_rc after each decision to stop test execution

This allows other programs to make decisions based on the activity of
the Stop plug-in.

Change-Id: I8b51edf

Set and save stop_check_rc after each decision to stop test execution

This allows other programs to make decisions based on the activity of
the Stop plug-in.

Change-Id: I8b51edf75fcc310e7b3671ee4bb8ff394deb1c66
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>

show more ...


# f5293d20 01-Feb-2019 Michael Walsh <micwalsh@us.ibm.com>

New get_function_stack function

Return a list of all the function names currently in the call stack.

Change-Id: If37bef50f4b4d4fb467de92c5bb3ff23c7e4ac4d
Signed-off-by: Michael

New get_function_stack function

Return a list of all the function names currently in the call stack.

Change-Id: If37bef50f4b4d4fb467de92c5bb3ff23c7e4ac4d
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>

show more ...


# 9fc17c39 21-Jan-2019 Michael Walsh <micwalsh@us.ibm.com>

Expand quote_bash_parms to recognize more bash special characters

Also, added call to escape_bash_quotes to properly handle internal
single quotes.

Change-Id: I68ac50048a4c0be8c

Expand quote_bash_parms to recognize more bash special characters

Also, added call to escape_bash_quotes to properly handle internal
single quotes.

Change-Id: I68ac50048a4c0be8c75849fd6dfe3a609ad6b922
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>

show more ...


# 36efbc04 12-Dec-2018 George Keishing <gkeishin@in.ibm.com>

Python 2.7x and 3.xx compatibility fixes

Change-Id: I84eb3bf7691fa867acadf9dae8c4f56a9781bf73
Signed-off-by: George Keishing <gkeishin@in.ibm.com>


Revision tags: v2.2-stable
# c9cb9721 01-Oct-2018 Michael Walsh <micwalsh@us.ibm.com>

New file_date_time_stamp function

Returns the current date in yymmdd.HHMMSS format.
This can be used to create filenames such as file1.181001.171716.status.

Change-Id: Ibafc40ca

New file_date_time_stamp function

Returns the current date in yymmdd.HHMMSS format.
This can be used to create filenames such as file1.181001.171716.status.

Change-Id: Ibafc40ca016e4ab6483e8e15dd615eaf4c41fd43
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>

show more ...


# 1383f351 27-Sep-2018 Michael Walsh <micwalsh@us.ibm.com>

New file_to_str function

Also, added close() to file_to_list function.

Change-Id: If9aaef919347ff8afafbf643b14d58cb16e215bc
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>


# f7400f31 26-Sep-2018 Michael Walsh <micwalsh@us.ibm.com>

New add_path function

Change-Id: I12ae8966d00e091a804ac4b4c222592292588c1e
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>


# 6aa69806 21-Sep-2018 Michael Walsh <micwalsh@us.ibm.com>

New json_loads_multiple function

Change-Id: I61ca85987a9271cdefe1867b8bda48532d207671
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>


12