Skip to content

Commit 26b4f4a

Browse files
committed
constant monitor-ing
1 parent 5f0dbf0 commit 26b4f4a

File tree

1 file changed

+10
-0
lines changed
  • rust/05_sandbox/tests/1tmp/as_root

1 file changed

+10
-0
lines changed

rust/05_sandbox/tests/1tmp/as_root/monitor

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
source "/swcode/swcode.bash"
66

77
rerunasroot "$@"
8+
while true; do
89

910
libtests=0
1011
while test "$libtests" -ne "6"; do
@@ -16,3 +17,12 @@ echo
1617

1718
chmod o+rx,g+rx /var/tmp/portage/dev-lang/rust-1.75.0-r1{,/work}
1819
pkill --echo -u portage -- 'rustc'
20+
21+
echo "Waiting for next recompilation...C-c if not."
22+
while test "$libtests" -eq "6"; do
23+
libtests="$(find /var/tmp/portage/dev-lang/rust-1.75.0-r1/work/rustc-1.75.0-src/build/ -iname \*libtest\* 2>/dev/null |grep stage1|wc -l)"
24+
sleep 5
25+
echo -n "$libtests"
26+
done
27+
28+
done

0 commit comments

Comments
 (0)