Code Review
/
bottlenecks.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
e9b969243ed678eedcaa4938677616d166f87d33
[bottlenecks.git]
/
vstf
/
vstf
/
agent
/
perf
/
affctl.py
1
#!/usr/bin/python
2
# -*- coding: utf8 -*-
3
# author: wly
4
# date: 2015/11/26
5
# see license for license details
6
7
from vstf.common.utils import check_call, call, check_output
8
9
10
def affctl_load(policy):
11
cmd = "affctl load %s" % policy
12
return check_call(cmd, shell=True)
13
14
15
def affctl_list():
16
cmd = "affctl list"
17
return check_output(cmd, shell=True)
18