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
a96d3421
Commit
a96d3421
authored
Oct 25, 2011
by
Matthieu Cattin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test series retry and make prompts more clear.
parent
ce74dfb8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
10 deletions
+29
-10
fmcadc100m14b4cha.sh
fmcadc100m14b4cha.sh
+29
-10
No files found.
fmcadc100m14b4cha.sh
View file @
a96d3421
...
@@ -12,7 +12,7 @@ sudo rm -fr $LOGDIR/pts*
...
@@ -12,7 +12,7 @@ sudo rm -fr $LOGDIR/pts*
serial
=
$1
serial
=
$1
if
[
x
$1
=
x
""
]
;
then
if
[
x
$1
=
x
""
]
;
then
echo
-n
"Please
, input SERIAL number
: "
echo
-n
"Please
scan CERN bar-code serial number, then press [ENTER]
: "
read
serial
read
serial
fi
fi
...
@@ -22,7 +22,7 @@ fi
...
@@ -22,7 +22,7 @@ fi
extra_serial
=
$2
extra_serial
=
$2
if
[
x
$2
=
x
""
]
;
then
if
[
x
$2
=
x
""
]
;
then
echo
-n
"
Please, input extra SERIAL number
: "
echo
-n
"
If needed input extra serial number and press [ENTER] OR just press [ENTER]
: "
read
extra_serial
read
extra_serial
fi
fi
...
@@ -30,11 +30,30 @@ if [ x$extra_serial = x"" ]; then
...
@@ -30,11 +30,30 @@ if [ x$extra_serial = x"" ]; then
extra_serial
=
0000
extra_serial
=
0000
fi
fi
nb_test_limit
=
2
echo
-n
"--------------------------------------------------------------
\n
"
nb_test
=
1
sudo
./pts.py
-b
FmcAdc100M14b4cha
-s
$serial
-e
$extra_serial
-t
./test/fmcadc100m14b4cha/python
-l
$LOGDIR
00 01 02 03 04 05 06 07 08 09
while
[
"
$nb_test
"
-le
"
$nb_test_limit
"
]
do
echo
"--------------------------------------------------------------"
echo
-n
"Press enter to exit... "
echo
"Test series run
$nb_test
out of
$nb_test_limit
"
read
tmp
sudo
./pts.py
-b
FmcAdc100M14b4cha
-s
$serial
-e
$extra_serial
-t
./test/fmcadc100m14b4cha/python
-l
$LOGDIR
00 01 02 03 04 05 06 07 08 09
if
[
"
$nb_test
"
!=
"
$nb_test_limit
"
]
then
echo
" "
echo
-n
"Do you want to run the test series again [y,n]? "
read
reply
if
[
"
$reply
"
!=
"y"
]
then
break
fi
fi
let
"nb_test+=1"
done
echo
"--------------------------------------------------------------"
echo
" "
echo
-n
"End of the test, press [ENTER] to exit... "
read
tmp
\ No newline at end of file
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