Skip to content

Commit

Permalink
test/coredevice/primes: keep output list entirely on the host
Browse files Browse the repository at this point in the history
sbourdeauducq committed Dec 31, 2015
1 parent 787a1d3 commit 17802d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion artiq/test/coredevice/portability.py
Original file line number Diff line number Diff line change
@@ -20,6 +20,9 @@ def build(self):
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 @@ def run(self):
break
d += 1
if prime:
self.output_list.append(x)
self._add_output(x)


class _Misc(EnvExperiment):

0 comments on commit 17802d3

Please sign in to comment.