From 17802d3cff252a7518af40bc8f39fc5890447bec Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 31 Dec 2015 09:49:37 +0800 Subject: [PATCH] test/coredevice/primes: keep output list entirely on the host --- artiq/test/coredevice/portability.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/artiq/test/coredevice/portability.py b/artiq/test/coredevice/portability.py index f72fb1b2f..534ede3f0 100644 --- a/artiq/test/coredevice/portability.py +++ b/artiq/test/coredevice/portability.py @@ -20,6 +20,9 @@ class _Primes(EnvExperiment): self.setattr_argument("output_list") self.setattr_argument("maximum") + def _add_output(self, x): + self.output_list.append(x) + @kernel def run(self): for x in range(1, self.maximum): @@ -31,7 +34,7 @@ class _Primes(EnvExperiment): break d += 1 if prime: - self.output_list.append(x) + self._add_output(x) class _Misc(EnvExperiment):