Merge "Change PTL informatin in INFO"
[bottlenecks.git] / testsuites / vstf / vstf_scripts / vstf / agent / perf / affctl.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 from vstf.common.utils import check_call, call, check_output
11
12
13 def affctl_load(policy):
14     cmd = "affctl load %s" % policy
15     return check_call(cmd, shell=True)
16
17
18 def affctl_list():
19     cmd = "affctl list"
20     return check_output(cmd, shell=True)