示例#1
0
def tst_run_time_test():
    return shell('date')
示例#2
0
def ocean_connect_test():
    return shell('python manage.py ocean console git status')
示例#3
0
def vc_status_test():
    return shell('python manage.py vc status')
示例#4
0
def tst_files_test():
    return shell('ls -l test')
示例#5
0
def list_processes(args=[]):
    text = shell('ps -ef')
    for pattern in args:
        text = match_pattern(text, pattern)
    return text
示例#6
0
def django_settings_test():
    return shell('cat hammer/settings.py')
示例#7
0
def django_webserver_test():
    if is_server():
        return shell('cat hammer/wsgi.py /etc/systemd/system/gunicorn.service /etc/nginx/sites-available/sensei')
    else:
        config = shell('cat hammer/wsgi.py hammer/config/gunicorn.conf hammer/config/nginx.conf')
        return '%s is not the Server. Configuration is not active. \n\n%s' % (hostname(), config)
示例#8
0
def django_pipenv_test():
    return shell('pip list')
示例#9
0
def django_python_path_test():
    return shell('which python')
示例#10
0
def django_python_version_test():
    return shell('python --version')
示例#11
0
def django_hammer_test():
    return shell('ls -l hammer|grep -v sensei.db')
示例#12
0
def system_files_test():
    return shell('ls -l|grep -v hammer') + shell('pwd')