etherlab/images/genicons.sh
author Edouard Tisserant <edouard.tisserant@gmail.com>
Sat, 05 Mar 2022 11:14:00 +0100
branchwxPython4
changeset 3437 ce366d67a5b7
parent 2043 27d4cb689a79
permissions -rw-r--r--
Tests: Enhance robustness of stdout driven waiting state in Sikuli based tests.

Some tests were randomly passing, because from time to time waiting for idle was skiped. It was combination of multiple problems :
- buffering on stdout (now use readline + flush for each write to log)
- it is sometime required to wait for activity before waiting for timeout added "WaitForChangeAndIdle" to "stdoutIdleObserver"
2043
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
     1
#!/bin/bash
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
     2
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
     3
INKSCAPE=inkscape
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
     4
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
     5
for i in `cat icons.svg |grep -o -e '%%[^%]*%%'|sed 's/%//g'` 
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
     6
do
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
     7
 if [ $i.png -nt icons.svg ]; then
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
     8
 	echo "Skip $i"
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
     9
 else
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
    10
	rm  -f $i.png
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
    11
	echo "$INKSCAPE" icons.svg -z -e $i.png -i $i
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
    12
	"$INKSCAPE" icons.svg -z -e $i.png -i $i
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
    13
 fi
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
    14
done
27d4cb689a79 Adding plugin icons and replacing reference to DS402 by CIA402
laurent
parents:
diff changeset
    15