Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
d150e86d
Commit
d150e86d
authored
4 years ago
by
Andre Maroneze
Committed by
Valentin Perrelle
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[analysis-scripts] check if the target is a directory before listing sub-targets
parent
45002bc7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
share/analysis-scripts/summary.py
+5
-3
5 additions, 3 deletions
share/analysis-scripts/summary.py
with
5 additions
and
3 deletions
share/analysis-scripts/summary.py
+
5
−
3
View file @
d150e86d
...
...
@@ -46,6 +46,9 @@ def build_env(framac):
return
{
**
os
.
environ
,
'
PATH
'
:
bindir
+
'
:
'
+
os
.
environ
[
'
PATH
'
]
}
def
list_targets
(
dir
):
if
not
os
.
path
.
isdir
(
dir
):
raise
OperationException
(
f
"
target is not a directory:
{
dir
}
"
)
env
=
build_env
(
framac
)
res
=
subprocess
.
run
(
[
"
make
"
,
"
--directory
"
,
dir
,
"
--quiet
"
,
"
display-targets
"
],
...
...
@@ -56,10 +59,9 @@ def list_targets(dir):
res
=
[]
for
target
in
targets
:
if
target
.
endswith
(
"
.eva
"
)
or
target
.
endswith
(
"
.parse
"
):
res
.
append
(
dir
+
"
/
"
+
target
)
res
+=
[
f
"
{
dir
}
/
{
target
}
"
]
else
:
res
+=
[
dir
+
"
/
"
+
t
for
t
in
list_targets
(
target
)]
print
(
f
"
list_targets returning:
{
res
}
"
)
res
+=
list_targets
(
target
)
return
res
def
clone_frama_c
(
clonedir
,
hash
):
...
...
This diff is collapsed.
Click to expand it.
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