Cam & Ed | Change name of TEST environment variable to MOCK_EC2

This commit is contained in:
cameron-r 2014-10-21 12:47:01 -05:00 committed by Ed Thome
parent 11f9afe4fc
commit 6c9b81765b
4 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
import os
if os.environ.get('TEST'):
if os.environ.get('MOCK_EC2'):
print "test environment"
from ec2driver_test_config import *
else:

View File

@ -1,7 +1,7 @@
#! /usr/bin/env bash
echo "Setting environment variable TEST=True"
export TEST=True
echo "Setting environment variable MOCK_EC2=True"
export MOCK_EC2=True
echo "Restarting moto"
ps aux | grep moto_server | grep -v grep | awk '{print $2}' | xargs kill -9

View File

@ -1,7 +1,7 @@
#! /usr/bin/env bash
echo "Unsetting environment variable TEST"
unset TEST
echo "Unsetting environment variable MOCK_EC2"
unset MOCK_EC2
echo "Killing moto"
ps aux | grep moto_server | grep -v grep | awk '{print $2}' | xargs kill -9

View File

@ -11,7 +11,7 @@ from ..ec2driver_config import *
def sleep_if_ec2_not_mocked(seconds):
if not os.environ.get('TEST'):
if not os.environ.get('MOCK_EC2'):
time.sleep(seconds)