Commit 50878348 authored by Reto Da Forno's avatar Reto Da Forno
Browse files

minor fix in test config validation

parent bb3a7c1b
......@@ -741,7 +741,10 @@ def main(argv):
errcnt = errcnt + 1
total_samples = 0
for powerProfConf in tree.xpath('//d:powerProfilingConf', namespaces=ns):
obsList = [int(obsIdStr) for obsIdStr in powerProfConf.xpath('.//d:obsIds', namespaces=ns)[0].text.split()]
obsIds = powerProfConf.xpath('.//d:obsIds', namespaces=ns)[0].text.split()
if "ALL" in obsIds:
obsIds = ids
obsList = [int(obsIdStr) for obsIdStr in obsIds]
samplingRate = get_sampling_rate(powerProfConf, ns)
offset = int(powerProfConf.xpath('.//d:offset', namespaces=ns)[0].text) # mandatory field
duration = powerProfConf.xpath('.//d:duration', namespaces=ns)
......
......@@ -36,7 +36,7 @@
#
USER="flocklab"
HOST="whymper" # default server
HOST="flocklab" # default server
RSYNCPARAMS="-a -z -c -K --exclude=.* --exclude=*.dat --no-perms --no-owner --no-group --ignore-times --delete"
LOCKFILE="update.lock" # write '1' into this file (on the server) to prevent this script from updating/overwriting files
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment