diff options
author | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2014-03-19 15:59:25 +0000 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2014-03-19 15:59:25 +0000 |
commit | 4558efe248ad49f96c97335ea93319b1f8cc01b0 (patch) | |
tree | 01d4ca46a6a8f88c5c531af0fbaca43b39b6edd6 | |
parent | dccf6b76d0ec0f63bca8ebfee900da388d15fc30 (diff) |
fixed bugs in the prepare scripts
-rwxr-xr-x | prepare-config.py | 4 | ||||
-rwxr-xr-x | prepare-device.sh | 2 | ||||
-rwxr-xr-x | run-workload.sh | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/prepare-config.py b/prepare-config.py index fff0e42..1e7475e 100755 --- a/prepare-config.py +++ b/prepare-config.py @@ -17,10 +17,10 @@ if __name__ == '__main__': lava_cache_config = StringIO(lava_cache) lava_cache_reader = RawConfigParser() lava_cache_reader.readfp(lava_cache_config) - ipaddr = lava_cache_reader.read(ROOT, 'ipaddr') + ipaddr = lava_cache_reader.get(ROOT, 'ipaddr') config = open(CONFIG_PATH, "r") config_template = Template(config.read()) config.close() dest_config = open(CONFIG_NAME, "w") - dest_config.write(config_template.substitute(ipaddr=ipaddr + ":5555")) + dest_config.write(config_template.safe_substitute(ipaddr=ipaddr + ":5555")) dest_config.close() diff --git a/prepare-device.sh b/prepare-device.sh index 814a5b2..4e4faca 100755 --- a/prepare-device.sh +++ b/prepare-device.sh @@ -1,4 +1,4 @@ -#!/usr/bin/sh +#!/bin/bash echo "Preparing device for mode: $1" exit 0 diff --git a/run-workload.sh b/run-workload.sh index c9fcbc7..fe84b39 100755 --- a/run-workload.sh +++ b/run-workload.sh @@ -1,4 +1,4 @@ -#!/usr/bin/sh +#!/bin/bash run_workloads $1 -v -f -d $2 -c config.py exit 0 |