tooz/run-examples.sh
Joshua Harlow fd730c42a3 Have examples run in the py27 environment and make them work
It is great to ensure that the examples that tooz has actually run
during testing time, so enable this as well as adjust the examples
to create unique group ids and run for a limited amount of time instead
of running forever (and fix a few other brokeness)...

Change-Id: I573cf5946a1d3f13862c0c28cf3a5d7fc6178873
2014-09-19 11:57:56 -07:00

11 lines
194 B
Bash
Executable File

#!/bin/bash
set -e
python_version=$(python --version 2>&1)
echo "Running using '$python_version'"
for filename in examples/*.py; do
echo "Activating '$filename'"
python $filename
done