Skip to content

Commit

Permalink
Add newlines to precooked_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum-shift committed Aug 7, 2021
1 parent f610891 commit d98198b
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 16 deletions.
3 changes: 2 additions & 1 deletion package/scripts/precook_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def make_net(proc_net, fixed_value, rand=False):
for param in net_params:
net_fname = os.path.join(proc_net, param)
with open(net_fname, "w") as f:
print(random.randint(0, net_lim) if rand else fixed_value, file=f, end="")
print(random.randint(0, net_lim) if rand else fixed_value, file=f)


def make_nvidia(proc_nvidia, fixed_value):
Expand All @@ -106,6 +106,7 @@ def make_nvidia(proc_nvidia, fixed_value):
]
for param in params:
print(param, file=f, end=" ")
print("", file=f)


def createPath(new_dir):
Expand Down
2 changes: 1 addition & 1 deletion package/scripts/precooked_tests/drop/1/proc/net/rx_bytes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
500000
500000
2 changes: 1 addition & 1 deletion package/scripts/precooked_tests/drop/1/proc/net/rx_packets
Original file line number Diff line number Diff line change
@@ -1 +1 @@
500000
500000
2 changes: 1 addition & 1 deletion package/scripts/precooked_tests/drop/1/proc/net/tx_bytes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
500000
500000
2 changes: 1 addition & 1 deletion package/scripts/precooked_tests/drop/1/proc/net/tx_packets
Original file line number Diff line number Diff line change
@@ -1 +1 @@
500000
500000
2 changes: 1 addition & 1 deletion package/scripts/precooked_tests/drop/1/proc/nvidia/smi
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0 1729 G 50 50 0 0 50 python3
0 1729 G 50 50 0 0 50 python3
2 changes: 1 addition & 1 deletion package/scripts/precooked_tests/drop/2/proc/net/rx_bytes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1000000
1000000
2 changes: 1 addition & 1 deletion package/scripts/precooked_tests/drop/2/proc/net/rx_packets
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1000000
1000000
2 changes: 1 addition & 1 deletion package/scripts/precooked_tests/drop/2/proc/net/tx_bytes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1000000
1000000
2 changes: 1 addition & 1 deletion package/scripts/precooked_tests/drop/2/proc/net/tx_packets
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1000000
1000000
2 changes: 1 addition & 1 deletion package/scripts/precooked_tests/drop/2/proc/nvidia/smi
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0 1729 G 100 100 0 0 100 python3
0 1729 G 100 100 0 0 100 python3
2 changes: 1 addition & 1 deletion package/scripts/precooked_tests/drop/3/proc/net/rx_bytes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
200000
200000
2 changes: 1 addition & 1 deletion package/scripts/precooked_tests/drop/3/proc/net/rx_packets
Original file line number Diff line number Diff line change
@@ -1 +1 @@
200000
200000
2 changes: 1 addition & 1 deletion package/scripts/precooked_tests/drop/3/proc/net/tx_bytes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
200000
200000
2 changes: 1 addition & 1 deletion package/scripts/precooked_tests/drop/3/proc/net/tx_packets
Original file line number Diff line number Diff line change
@@ -1 +1 @@
200000
200000
2 changes: 1 addition & 1 deletion package/scripts/precooked_tests/drop/3/proc/nvidia/smi
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0 1729 G 20 20 0 0 20 python3
0 1729 G 20 20 0 0 20 python3

0 comments on commit d98198b

Please sign in to comment.