Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Simulator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pg-andi
Simulator
Commits
da7e8c84
There was a problem fetching the pipeline summary.
Commit
da7e8c84
authored
Oct 4, 2017
by
Britta Heymann
Browse files
Options
Downloads
Patches
Plain Diff
Make reportSummary.py work with spaces in path
parent
e3be6228
No related branches found
No related tags found
1 merge request
!162
Make reportSummary.py work with spaces in path
Pipeline
#
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
toolkit/reportSummary/reportSummary.py
+13
-13
13 additions, 13 deletions
toolkit/reportSummary/reportSummary.py
with
13 additions
and
13 deletions
toolkit/reportSummary/reportSummary.py
+
13
−
13
View file @
da7e8c84
...
...
@@ -42,61 +42,61 @@ perlNames = [["messageDelayAnalyzer.pl", "realisticScenario_ImmediateMessageDela
necessaryAnalyses
=
[]
for
(
script
,
input
,
output
)
in
perlNames
:
necessaryAnalyses
.
append
([
"
../
"
+
script
,
reportDir
+
input
+
"
.txt
"
,
reportDir
+
output
+
"
.txt
"
])
necessaryAnalyses
.
append
([
"
../
"
+
script
,
os
.
path
.
join
(
reportDir
,
input
+
"
.txt
"
)
,
os
.
path
.
join
(
reportDir
,
output
+
"
.txt
"
)
])
#Execute script with input and write to output
print
(
"
You are running
"
,
sys
.
platform
)
for
(
script
,
input
,
output
)
in
necessaryAnalyses
:
with
open
(
output
,
'
w
'
,
1
)
as
file
:
process
=
subprocess
.
run
(
"
perl
"
+
script
+
"
"
+
input
+
"
"
+
granularity
,
stdout
=
file
)
process
=
subprocess
.
run
(
"
perl
"
+
script
+
'
"
'
+
input
+
'
"
'
+
granularity
,
stdout
=
file
)
if
(
sys
.
platform
==
"
linux
"
):
file
.
write
(
process
.
stdout
)
print
(
"
Successfully created
"
,
output
)
# Create images/ directory in reports directory if it does not exist yet
imageDirectoryName
=
reportDir
+
'
images/
'
imageDirectoryName
=
os
.
path
.
join
(
reportDir
,
'
images/
'
)
if
not
os
.
path
.
exists
(
imageDirectoryName
):
os
.
makedirs
(
imageDirectoryName
)
print
(
"
Made sure directory exists:
"
,
imageDirectoryName
)
# Call all visualization scripts
trafficAnalysis
.
main
(
analysisFileName
=
reportDir
+
"
realisticScenario_TrafficReport.txt
"
,
analysisFileName
=
os
.
path
.
join
(
reportDir
,
"
realisticScenario_TrafficReport.txt
"
)
,
graphicFileName
=
readFileUtilities
.
getAbsoluteTrafficAnalysisPath
(
imageDirectoryName
))
bufferOccupancy
.
main
(
analysisFileName
=
reportDir
+
"
realisticScenario_BufferOccupancyReport.txt
"
,
analysisFileName
=
os
.
path
.
join
(
reportDir
,
"
realisticScenario_BufferOccupancyReport.txt
"
)
,
graphicFileName
=
readFileUtilities
.
getAbsoluteBufferOccupancyAnalysisPath
(
imageDirectoryName
))
privateMessageAnalysis
.
main
(
analysisFileName
=
reportDir
+
"
realisticScenario_DeliveryProbabilityReport.txt
"
,
analysisFileName
=
os
.
path
.
join
(
reportDir
,
"
realisticScenario_DeliveryProbabilityReport.txt
"
)
,
graphicFileName
=
readFileUtilities
.
getAbsoluteDeliveryRatePath
(
imageDirectoryName
))
delayDistributionAnalysis
.
main
(
analysisFileName
=
reportDir
+
"
messageDelayAnalysis.txt
"
,
analysisFileName
=
os
.
path
.
join
(
reportDir
,
"
messageDelayAnalysis.txt
"
)
,
messageType
=
"
ONE_TO_ONE
"
,
messagePrio
=
0
,
graphicFileName
=
readFileUtilities
.
getAbsoluteOneToOneMessageDelayPath
(
imageDirectoryName
))
broadcastAnalysis
.
main
(
analysisFileName
=
reportDir
+
"
broadcastMessageAnalysis.txt
"
,
analysisFileName
=
os
.
path
.
join
(
reportDir
,
"
broadcastMessageAnalysis.txt
"
)
,
graphicFileName
=
readFileUtilities
.
getAbsoluteBroadcastAnalysisPath
(
imageDirectoryName
))
relevantPriorities
=
[
2
,
5
,
9
]
for
prio
in
relevantPriorities
:
delayDistributionAnalysis
.
main
(
analysisFileName
=
reportDir
+
"
messageDelayAnalysis.txt
"
,
analysisFileName
=
os
.
path
.
join
(
reportDir
,
"
messageDelayAnalysis.txt
"
)
,
messageType
=
"
BROADCAST
"
,
messagePrio
=
prio
,
graphicFileName
=
readFileUtilities
.
getAbsoluteBroadcastDelayPath
(
imageDirectoryName
,
prio
))
multicastAnalysis
.
main
(
analysisFileName
=
reportDir
+
"
multicastMessageAnalysis.txt
"
,
analysisFileName
=
os
.
path
.
join
(
reportDir
,
"
multicastMessageAnalysis.txt
"
)
,
graphicFileName
=
readFileUtilities
.
getAbsoluteMulticastAnalysisPath
(
imageDirectoryName
))
delayDistributionAnalysis
.
main
(
analysisFileName
=
reportDir
+
"
messageDelayAnalysis.txt
"
,
analysisFileName
=
os
.
path
.
join
(
reportDir
,
"
messageDelayAnalysis.txt
"
)
,
messageType
=
"
MULTICAST
"
,
messagePrio
=
1
,
graphicFileName
=
readFileUtilities
.
getAbsoluteMulticastDelayPath
(
imageDirectoryName
))
dataSyncAnalysis
.
main
(
analysisFileName
=
reportDir
+
"
realisticScenario_DataSyncReport.txt
"
,
analysisFileName
=
os
.
path
.
join
(
reportDir
,
"
realisticScenario_DataSyncReport.txt
"
)
,
graphicFileName
=
readFileUtilities
.
getAbsoluteDataAnalysisPath
(
imageDirectoryName
))
energyAnalysis
.
main
(
analysisFileName
=
reportDir
+
"
realisticScenario_EnergyLevelReport.txt
"
,
analysisFileName
=
os
.
path
.
join
(
reportDir
,
"
realisticScenario_EnergyLevelReport.txt
"
)
,
graphicFileName
=
readFileUtilities
.
getAbsoluteEnergyAnalysisPath
(
imageDirectoryName
))
print
(
"
Successfully created all graphics. Creating pdf...
"
)
...
...
This diff is collapsed.
Click to expand it.
Ghost User
@ghost
·
Oct 4, 2017
Contributor
SonarQube analysis reported no issues.
SonarQube analysis reported no issues.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment