Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
FlockLab 1 - deprecated
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
TEC
P
Public
FlockLab
FlockLab 1 - deprecated
Commits
38e4d9f4
Commit
38e4d9f4
authored
Apr 26, 2019
by
Reto Da Forno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor change
parent
e14814aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
19 deletions
+14
-19
tools/shell-tool/flocklab
tools/shell-tool/flocklab
+14
-19
No files found.
tools/shell-tool/flocklab
View file @
38e4d9f4
...
...
@@ -4,7 +4,7 @@
# Command line tool for FlockLab
# v1.1
#
#
u
sage:
#
U
sage:
#
# -v <testconfig.xml>: validate
# -c <testconfig.xml>: create
...
...
@@ -14,20 +14,15 @@
# -f <testid>: fetch via webdav
# -h: display help
#
#
y
our FlockLab login credentials need to be stored in .flocklabauth in your home directory as follows:
#
Y
our FlockLab login credentials need to be stored in .flocklabauth in your home directory as follows:
# USER=[your_username]
# PASSWORD=[your_password]
#
# if you want to be able to download your test results (-f), your credentials need to be stored in .netrc in your home directory:
# default
# login [your_username]
# password [your_password]
#
# note: if you use the .netrc file, you don't need the .flocklabauth file
# If you want to be able to download your test results via webdav (-f), you need to install the client 'cadaver'.
# ------------------------------
DEST
=
/tmp
EXTRACT
=
1
EXTRACT
=
0
SERVER_URL
=
https://www.flocklab.ethz.ch/user
CURL_PARAMS
=
-sS
FLAUTH_FILE
=
.flocklabauth
...
...
@@ -55,16 +50,6 @@ then
done
<
"
$NETRC_FILE
"
fi
# if .netrc file does not exist, create it
if
[
!
-f
$NETRC_FILE
]
then
echo
"default
login
$USER
password
$PASSWORD
"
>
$NETRC_FILE
chmod
600
$NETRC_FILE
echo
".netrc file created"
fi
usage
()
{
cat
<<
EOF
...
...
@@ -92,6 +77,16 @@ EOF
fetchtest
()
{
# if .netrc file does not exist, create it
if
[
!
-f
$NETRC_FILE
]
then
echo
"default
login
$USER
password
$PASSWORD
"
>
$NETRC_FILE
chmod
600
$NETRC_FILE
echo
".netrc file created"
fi
TESTID
=
$OPTARG
if
[
!
-d
$DEST
]
then
...
...
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