summaryrefslogtreecommitdiffstats
path: root/vstf/vstf/agent/agent.py
diff options
context:
space:
mode:
authorYiting.Li <liyiting@huawei.com>2016-01-19 14:39:31 +0800
committerJun Li <matthew.lijun@huawei.com>2016-01-20 01:23:27 +0000
commit6d9521fff519412e66d585d8f980824414a218eb (patch)
tree6b6403f87c494ce2592228560f4078c8d3763ba5 /vstf/vstf/agent/agent.py
parent9bd22008562f748f82a3053f53a969027876a852 (diff)
JIRA: BOTTLENECKS-29
add the performance test framework add the copyright on the code. Change-Id: I6ec9eefe65bf07c2dd6c636d1b90b64da303952e Signed-off-by: Yiting.Li <liyiting@huawei.com> (cherry picked from commit 5b4f794932cb9b28ec679e6dd88e6febb2a5db7b)
Diffstat (limited to 'vstf/vstf/agent/agent.py')
-rwxr-xr-xvstf/vstf/agent/agent.py22
1 files changed, 16 insertions, 6 deletions
diff --git a/vstf/vstf/agent/agent.py b/vstf/vstf/agent/agent.py
index 396b571e..b5745995 100755
--- a/vstf/vstf/agent/agent.py
+++ b/vstf/vstf/agent/agent.py
@@ -1,5 +1,15 @@
-#!/usr/bin/env python
+##############################################################################
+# Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+# !/usr/bin/env python
# coding=utf-8
+
import logging
import argparse
import signal
@@ -61,11 +71,11 @@ class Client(daemon.Daemon):
def loop_thread(self):
LOG.info("Try to create direct proxy...")
self.proxy = rpc_consumer.VstfConsumer(self.agent,
- self.config.rabbit.user,
- self.config.rabbit.passwd,
- self.config.rabbit.host,
- self.config.rabbit.port,
- self.config.rabbit.id)
+ self.config.rabbit.user,
+ self.config.rabbit.passwd,
+ self.config.rabbit.host,
+ self.config.rabbit.port,
+ self.config.rabbit.id)
self.proxy.run()
def run(self):