-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.py
More file actions
executable file
·52 lines (47 loc) · 1.72 KB
/
run.py
File metadata and controls
executable file
·52 lines (47 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#==========================================================================================================
#
# FILE: run.py
#
# Usage: python run.py
#
#
# DESCRIPTION: Script to build/test autotest test packages and run regression
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: IBM LTC Test Team
# COMPANY: IBM
# VERSION: 1.0
# CREATED: 22-Feb-2017 Abhishek Sharma < abhisshm@in.ibm.com >
# REVISION: ---
#==========================================================================================================
#=========================================================
# Importing python predefine and user defined modules
#=========================================================
import os,sys,getopt,os.path # importing OS module for performing os related activity.
#if sys.version[0:3] == "2.7":
# import subprocess
####################################################
# Import generic modules
####################################################
from modules.generic_module import *
from modules.build_conf import *
os.system('clear')
###############################################
# Import custom modules based on conf file
###############################################
ACTION = generic_conf.build_type
if ACTION == "CUSTOM":
from modules.custom_module import *
elif ACTION == "REDHAT":
from modules.rhel_module import *
elif ACTION == "SUSE":
from modules.suse_module import *
elif ACTION == "UBUNTU":
from modules.ubuntu_module import *
elif ACTION == "CENTOS":
from modules.centos_module import *
else:
print "build_type under modules/build_conf.py is either empty or not configured properly, please configure and rerun"