Skip to content

Commit

Permalink
Add show log for Info.plist and PkgInfo
Browse files Browse the repository at this point in the history
Issue #145
  • Loading branch information
damies13 committed Sep 23, 2024
1 parent e4874ba commit 8127df9
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Tests/Regression/Agent/CommandLine_Common.robot
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Stop Manager
END
Log ${result.stdout}
Log ${result.stderr}

# Should Be Equal As Integers ${result.rc} 0
Log to console Process returned: ${result.rc}
END
Expand Down Expand Up @@ -313,8 +313,10 @@ Check Icon Install For Macos
File Should Exist ${appfolder}${/}Contents${/}Resources${/}${projname}.icns icns File not found

File Should Exist ${appfolder}${/}Contents${/}Info.plist plist File not found
Show Log ${appfolder}${/}Contents${/}Info.plist

File Should Exist ${appfolder}${/}Contents${/}PkgInfo PkgInfo File not found
Show Log ${appfolder}${/}Contents${/}PkgInfo

File Should Exist ${appfolder}${/}Contents${/}MacOS${/}${projname} Executable Symbolic Link File not found

Expand Down Expand Up @@ -343,4 +345,4 @@ Check Icon Install For Ubuntu


#
#
#
2 changes: 2 additions & 0 deletions Tests/Regression/Manager/CommandLine_Common.robot
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,10 @@ Check Icon Install For Macos
File Should Exist ${appfolder}${/}Contents${/}Resources${/}${projname}.icns icns File not found

File Should Exist ${appfolder}${/}Contents${/}Info.plist plist File not found
Show Log ${appfolder}${/}Contents${/}Info.plist

File Should Exist ${appfolder}${/}Contents${/}PkgInfo PkgInfo File not found
Show Log ${appfolder}${/}Contents${/}PkgInfo

File Should Exist ${appfolder}${/}Contents${/}MacOS${/}${projname} Executable Symbolic Link File not found

Expand Down
17 changes: 17 additions & 0 deletions Tests/Regression/Reporter/CommandLine_Common.robot
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,21 @@ Set Platform By Tag
Set Suite Variable ${platform} ubuntu
END

Show Log
[Arguments] ${filename}
Log ${\n}-----${filename}----- console=True
${filedata}= Get File ${filename} encoding=SYSTEM encoding_errors=ignore
Log ${filedata} console=True
Log -----${filename}-----${\n} console=True
RETURN ${filedata}

Read Log
[Arguments] ${filename}
Log ${filename}
${filedata}= Get File ${filename} encoding=SYSTEM encoding_errors=ignore
Log ${filedata}
RETURN ${filedata}

Clean Up Old Files
[Tags] ubuntu-latest macos-latest windows-latest
# cleanup previous output
Expand Down Expand Up @@ -180,8 +195,10 @@ Check Icon Install For Macos
File Should Exist ${appfolder}${/}Contents${/}Resources${/}${projname}.icns icns File not found

File Should Exist ${appfolder}${/}Contents${/}Info.plist plist File not found
Show Log ${appfolder}${/}Contents${/}Info.plist

File Should Exist ${appfolder}${/}Contents${/}PkgInfo PkgInfo File not found
Show Log ${appfolder}${/}Contents${/}PkgInfo

File Should Exist ${appfolder}${/}Contents${/}MacOS${/}${projname} Executable Symbolic Link File not found

Expand Down

0 comments on commit 8127df9

Please sign in to comment.