1 ##############################################################################
2 # Copyright (c) 2015 Huawei Technologies Co.,Ltd. and others
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 ##############################################################################
11 import subprocess as subp
13 from collector import Collector
14 from uploader import Uploader
19 print "Wrong arguments, please input 2 parameters, 1st as raw data path; "\
20 "2nd as config yaml!!"
22 data_home = sys.argv[1]
26 result = Collector().collect_data(data_home)
27 print "Result collected:\n%s" % result
30 Uploader(conf).upload_result("rubbos", result)