This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### python-virtualenv-notes ### | |
Notes from virtualenv documentation on pypi http://pypi.python.org/pypi/virtualenv | |
o Install | |
instructions for installing | |
http://www.virtualenv.org/en/latest/#installation | |
in case you haven't already install pip | |
$ sudo apt-get install python-pip | |
OR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# execute (python|pip|virtualenv) as 'env PATH=${PREFIX}:${PATH} python' | |
PREFIX=/opt/mypy | |
if [ $# -gt 0 ] ; then | |
PREFIX=$1 | |
fi | |
PYVER=2.7.6 | |
if [ $# -gt 1 ] ; then | |
PYVER=$2 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat copy_ssh_keys.sh | |
#!/usr/bin/env bash | |
file="$1" | |
if [ ! -f "$file" ] ; then | |
echo "Usage: $0 [FILE]" | |
exit 1 | |
fi | |
user=`whoami` | |
echo "password: \c" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mmorais@displaytoday rally$ tox -c mytox.ini -e pep8,py27 | |
pep8 develop-inst-noop: /home/mmorais/rally | |
pep8 runtests: commands[0] | flake8 | |
py27 develop-inst-noop: /home/mmorais/rally | |
py27 runtests: commands[0] | python setup.py testr --slowest --testr-args= | |
running testr | |
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ./tests --list | |
_warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning) | |
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ./tests --load-list /tmp/tmp7Jrd4c | |
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ./tests --load-list /tmp/tmpkfGpvS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(Pdb) bt | |
/home/mmorais/rallyve/bin/rally(10)<module>() | |
-> sys.exit(main()) | |
/home/mmorais/rallyve/lib/python2.7/site-packages/rally/cmd/main.py(44)main() | |
-> return cliutils.run(sys.argv, categories) | |
/home/mmorais/rallyve/lib/python2.7/site-packages/rally/cmd/cliutils.py(193)run() | |
-> ret = fn(*fn_args, **fn_kwargs) | |
<string>(2)start() | |
/home/mmorais/rallyve/lib/python2.7/site-packages/rally/cmd/envutils.py(63)default_from_global() | |
-> return f(*args, **kwargs) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
191 def run(self, name, context, args): | |
192 cls_name, method_name = name.split(".", 1) | |
193 cls = base.Scenario.get_by_name(cls_name) | |
194 | |
195 scenario_context = copy.deepcopy(getattr(cls, method_name).context) | |
196 # TODO(boris-42): We should keep default behavior for `users` context | |
197 # as a part of work on pre-created users this should be | |
198 # removed. | |
199 scenario_context.setdefault("users", {}) | |
200 # merge scenario context and task context configuration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/rally/benchmark/scenarios/utils.py b/rally/benchmark/scenarios/utils.py | |
index 4825795..4063fe3 100644 | |
--- a/rally/benchmark/scenarios/utils.py | |
+++ b/rally/benchmark/scenarios/utils.py | |
@@ -144,7 +144,7 @@ def atomic_action_timer(name): | |
return wrap | |
-class AtomicAction(object): | |
+class AtomicAction(utils.Timer): |
NewerOlder