Autoconfigure enviroment via Python script

本文介绍了一种通过Python脚本来自动完成Linux操作系统环境配置的方法,主要用于简化Powercycling测试过程中的环境搭建工作。该测试需在Linux及Windows环境下运行,但鉴于Windows配置较为简单,本文重点在于Linux系统的自动化配置。

A new cycle of the Powercycling test has been bulit in the last week ,because i feel so much boring during the test envirement configure process, this time I determine to write a python script to complete the OS enviroment configuration .

Powercycling test need to run in linux OS and windows OS , but it's easy to complete the window enviroment setting , i don't want to pay more attention to it.

Well,linux OS usally has the same linux kernel , so it can be produced  a common script to cover the most of linux setting .

During test , i often make use of REHL7.3 OS/SUSE12 SP2  ,so i will decrypt the scripts  based on REHL 7.3 OS .

 

First,let's comfirm what is the envirment requirement:

1.login the Linux with root account automatically

2.excute a test script after log into OS

3.collect the test log at the end of the test

4.analysis the test log whether it's pass or not

 

posted on 2017-05-22 23:01  Daimon.gu 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/yongdaiblog-201409/p/6891961.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值