Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC ADC 100M 14b 4cha - Testing
Commits
f292bfda
Commit
f292bfda
authored
May 05, 2014
by
Matthieu Cattin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test23: Test if 'data' folder already exists before creating it.
parent
9fbba431
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
test23.py
test/fmcadc100m14b4cha/python/test23.py
+7
-3
No files found.
test/fmcadc100m14b4cha/python/test23.py
View file @
f292bfda
...
...
@@ -267,9 +267,13 @@ P1 Bank A nb signal=%d, P1 Bank B nb signal=%d, P2 Bank A nb signal=%d, P2 Bank
#==================================================
# Create an empty 'data' folder
cmd
=
"mkdir "
+
SDBFS_DIR
+
"data"
print
(
"Create empty data folder, cmd:
%
s
\n
"
%
(
cmd
))
os
.
system
(
cmd
)
data_dir
=
SDBFS_DIR
+
"data"
if
(
not
(
os
.
path
.
exists
(
data_dir
))):
cmd
=
"mkdir "
+
data_dir
print
(
"Create empty data folder, cmd:
%
s
\n
"
%
(
cmd
))
os
.
system
(
cmd
)
else
:
print
(
"
%
s folder already exists.
\n
"
%
(
data_dir
))
#==================================================
# Generate eeprom image with gensdbfs
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment