forked from Github_Repos/cvw
handle tera usernames more gracefully
This commit is contained in:
parent
cd7d403f92
commit
34f17b90ea
2
.gitignore
vendored
2
.gitignore
vendored
@ -24,4 +24,4 @@ testsBP/*/*/*.elf*
|
|||||||
testsBP/*/OBJ/*
|
testsBP/*/OBJ/*
|
||||||
testsBP/*/*.a
|
testsBP/*/*.a
|
||||||
wally-pipelined/linux-testgen/linux-testvectors/*
|
wally-pipelined/linux-testgen/linux-testvectors/*
|
||||||
!wally-pipelined/linux-testgen/linux-testvectors/tvCopierTemplate.py
|
!wally-pipelined/linux-testgen/linux-testvectors/tvCopier.py
|
||||||
|
@ -3,11 +3,14 @@
|
|||||||
import os
|
import os
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
tera = '<your username>@tera.eng.hmc.edu'
|
|
||||||
print("SORRY")
|
if not os.path.isfile('sshUname.txt'):
|
||||||
print("This script will fail because you have not set the \'tera\' var to your username")
|
print("GREETINGS FRIEND")
|
||||||
print("Please make a copy called tvCopier.py")
|
print("Please supply your tera username in ./sshUname.txt")
|
||||||
exit()
|
exit(1)
|
||||||
|
sshUnameFile = open('sshUname.txt','r')
|
||||||
|
uname = sshUnameFile.readline().strip('\n')
|
||||||
|
tera = uname+'@tera.eng.hmc.edu'
|
||||||
|
|
||||||
logFile = open('tvCopier.log', 'w')
|
logFile = open('tvCopier.log', 'w')
|
||||||
def pyTee(line):
|
def pyTee(line):
|
Loading…
Reference in New Issue
Block a user