File: command.t

package info (click to toggle)
ranger 1.9.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,104 kB
  • sloc: python: 13,031; sh: 212; makefile: 159
file content (24 lines) | stat: -rwxr-xr-x 368 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

echo 1..3

. `dirname $0`/boilerplate.sh

screen -D -m -T linux -- ranger --cmd "touch $TESTNAME" &

i=0
while [ ! -f $TESTNAME ] ; do
	i=$((i + 1))
	[ "$i" -ge "60" ] && break
	sleep 1
done

pgrep -f $TESTNAME
check_exit_code_true Session found

test -f $TESTNAME
check_exit_code_true Touched file

pkill -f $TESTNAME
check_exit_code_true Session is gone