示例#1
0
def test_arch():
    for have, want in trial_arch_machine_release:
        a,m,r = have.split(":")
        fake_uname = [a, None, r, None, m]
        got = rootsys.arch(fake_uname)
        assert want == got, 'Wanted "%s" but got "%s" with "%s"' % (want,got, fake_uname)
        print ('match: %s from %s' % (got, fake_uname))
示例#2
0
def test_my_arch():
    print ('This hosts ROOT arch:', rootsys.arch())