Skip to content

Commit

Permalink
Improvement to test automation.
Browse files Browse the repository at this point in the history
github action change for adding missing pack. License now accepted automatically.
Python run script detects when being run from github action.
  • Loading branch information
christophe0606 committed Jun 18, 2024
1 parent 05e6bef commit c414ac5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/runtest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
csolution list packs -s test_ac6.csolution.yml -m > required_packs.txt
cat required_packs.txt
cpackget add -f required_packs.txt
cpackget add -a -f required_packs.txt
- name: Execute
run: |
Expand Down
9 changes: 7 additions & 2 deletions Testing/cmsis_build/runall.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,23 @@
import os
import colorama
from colorama import init,Fore, Back, Style
from os import environ

parser = argparse.ArgumentParser(description='Parse test description')
parser.add_argument('-avh', nargs='?',type = str, default="C:/Keil_v5/ARM/VHT", help="AVH folder")
parser.add_argument('-d', action='store_true', help="Debug log")
parser.add_argument('-n', action='store_true', help="No force rebuild")
parser.add_argument('-r', action='store_true', help="Raw results only")
parser.add_argument('-c', action='store_true', help="Display cycles (so passing test are displayed)")
parser.add_argument('-l', action='store_true', help="Local run (not github action)")

args = parser.parse_args()


GHACTION = False

if "AVH_FVP_PLUGINS" in os.environ:
GHACTION = True

DEBUG=False
if args.d:
DEBUG=True
Expand Down Expand Up @@ -332,7 +337,7 @@ def runAVH(build,core):
print(res.msg,file=f)
print(HTMLFOOTER,file=f)

if args.l:
if not GHACTION:
if ERROR_OCCURED:
sys.exit("Error occurred")
else:
Expand Down

0 comments on commit c414ac5

Please sign in to comment.