Skip to content

Commit

Permalink
Add test strings
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed May 19, 2017
1 parent 30119a0 commit 4c9d4ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ippy/ippy.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,17 @@ def worker_func(ping_args, pending, done):
while True:
# Get the next address to ping.
address = pending.get_nowait()

print('test')
ping = subprocess.Popen(ping_args + [address],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE
)
print('test2')
out, error = ping.communicate()

print('test3')
# Output the result to the 'done' queue.
done.put(({'result': out, 'ip': address}, error))
print('test4')
except queue.Empty:
# No more addresses.
pass
Expand Down

0 comments on commit 4c9d4ce

Please sign in to comment.