Skip to content

Commit

Permalink
Being more verbose in test, wrapping up
Browse files Browse the repository at this point in the history
  • Loading branch information
morphex committed Jul 24, 2022
1 parent af689ea commit 9b53907
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 5 additions & 2 deletions client.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,14 @@ def run_client_test(quit=0):
for x in range(number_of_test_threads):
print("%i," % x, end="")
threads.append(_thread.start_new_thread(run_client_test, ()))
#print(threads)
count = 0
while True:
if len(threads) == finished:
if len(threads) <= finished:
break
time.sleep(0.01)
count += 1
if not count % 100:
print("Loop..", len(threads), finished)
print()
print("Finished testing..")
run_client_test(quit=1)
4 changes: 3 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ echo "Start time `date`"
smps_pid=$!
echo SMPS running at pid $smps_pid
sleep 2
./client.py $1
./client.py $1 &> client.log

echo "Test complete"
echo "End time `date`"
echo "Killing SMPS.."
kill -9 $smps_pid

0 comments on commit 9b53907

Please sign in to comment.