From addb3ef73d2de5580f9d8894122ab26b5d6a2df9 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 1 Oct 2014 16:55:55 -0600 Subject: [PATCH] Use uname -m instead of uname -p Debian hosts were reporting as 'unknown' Signed-off-by: Zack Cerza --- teuthology/orchestra/remote.py | 2 +- teuthology/orchestra/test/test_remote.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/teuthology/orchestra/remote.py b/teuthology/orchestra/remote.py index f7bd6ec527..eccfeef1f9 100644 --- a/teuthology/orchestra/remote.py +++ b/teuthology/orchestra/remote.py @@ -264,7 +264,7 @@ class Remote(object): @property def arch(self): if not hasattr(self, '_arch'): - proc = self.run(args=['uname', '-p'], stdout=StringIO()) + proc = self.run(args=['uname', '-m'], stdout=StringIO()) proc.wait() self._arch = proc.stdout.getvalue().strip() return self._arch diff --git a/teuthology/orchestra/test/test_remote.py b/teuthology/orchestra/test/test_remote.py index c73bb6be7d..12e51e3116 100644 --- a/teuthology/orchestra/test/test_remote.py +++ b/teuthology/orchestra/test/test_remote.py @@ -102,7 +102,7 @@ class TestRemote(object): run = fudge.Fake('run') args = [ 'uname', - '-p', + '-m', ] stdout = StringIO('test_arch') stdout.seek(0) -- 2.39.5