From: Mukund Sivaraman Date: Fri, 26 Oct 2012 01:20:21 +0000 (+0530) Subject: [2297] Return output value directly X-Git-Tag: trac2487_base~32^2~2^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fd2e13361be9f4e4fb4e1098bae2058de33432f7;p=thirdparty%2Fkea.git [2297] Return output value directly --- diff --git a/src/lib/python/isc/sysinfo/tests/sysinfo_test.py b/src/lib/python/isc/sysinfo/tests/sysinfo_test.py index 23633b2f90..9f1dd8f71f 100644 --- a/src/lib/python/isc/sysinfo/tests/sysinfo_test.py +++ b/src/lib/python/isc/sysinfo/tests/sysinfo_test.py @@ -190,7 +190,7 @@ def _my_freebsd_subprocess_check_output(command, faked_output): output = faked_output['smp-sysctl'] if isinstance(output, Exception): raise output - return faked_output['smp-sysctl'] + return output elif command == ['vmstat', '-H']: return b' procs memory page disks traps cpu\n r b w avm fre flt re pi po fr sr wd0 cd0 int sys cs us sy id\n 0 0 0 343434 123456 47 0 0 0 0 0 2 0 2 80 14 0 1 99\n' elif command == ['swapctl', '-s', '-k']: