Files
Sergio Cazzolato ebe85ba8a3 Moving to tests directories snaps built locally - part 1
Script being used to detect which snaps can be moved to

for snap in $(ls tests/lib/snaps); do
    count=0
    last=
    for test in $(find tests/ -name task.yaml); do
    	if $(grep -q $snap $test); then
    	    count=$((count+1))
    	    last=$test
    	fi
    done
    echo "$snap -> $count times"
    if [ $count = 1 ]; then
	echo "mv tests/lib/snaps/$snap $(dirname $last)"
    fi
done
2021-04-22 16:49:33 -03:00

4 lines
48 B
Bash
Executable File

#!/bin/sh
dd if=/dev/fb0 of=/dev/null count=10