Merge "Change PTL informatin in INFO"
[bottlenecks.git] / testsuites / vstf / vstf_scripts / vstf / controller / settings / settings_input.py
1 ##############################################################################
2 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10 import clize
11 from sigtools.modifiers import autokwoargs
12 from vstf.controller.settings.mail_settings import MailSettings
13 from vstf.controller.settings.perf_settings import PerfSettings
14 from vstf.controller.settings.cpu_settings import CpuSettings
15 from vstf.controller.settings.tool_settings import ToolSettings
16
17
18 @autokwoargs
19 def sinput(mail=False, perf=False, affctl=False, tool=False):
20     """Settings command line input
21
22     mail:  if start mail settings
23
24     perf:  if start perf settings
25
26     affctl:  if start set cpu affability
27
28     tool:  if start set tool properties
29
30     """
31
32     if mail:
33         MailSettings().sinput()
34     if perf:
35         PerfSettings().sinput()
36     if affctl:
37         CpuSettings().sinput()
38     if tool:
39         ToolSettings().sinput()
40
41
42 def main():
43     clize.run(sinput)
44
45 if __name__ == '__main__':
46     main()