* debian/rules: Remove shipped audit_type-to-name.h and
keyboard-keys-from-name.gperf and regenerate them during build (bug in
upstream 220 tarball).
+ * autopkgtest: Ship/use mock fsck from debian/tests, as it's missing in the
+ 220 tarball.
-- Martin Pitt <mpitt@debian.org> Fri, 22 May 2015 14:41:48 +0200
--- /dev/null
+#!/bin/bash
+fd=0
+
+OPTIND=1
+while getopts "C:aTlM" opt; do
+ case "$opt" in
+ C)
+ fd=$OPTARG
+ ;;
+ \?);;
+ esac
+done
+
+shift "$((OPTIND-1))"
+device=$1
+
+echo "Running fake fsck on $device"
+
+declare -a maxpass=(30 5 2 30 60)
+
+for pass in {1..5}; do
+ maxprogress=${maxpass[$((pass-1))]}
+ for (( current=0; current<=${maxprogress}; current++)); do
+ echo "$pass $current $maxprogress $device">&$fd
+ sleep 0.1
+ done
+done
os.rename(SYSTEM_FSCK_PATH, SAVED_FSCK_PATH)
# install mock fsck and killer
- self.install_bin(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', 'test', 'mocks', 'fsck'),
+ self.install_bin(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'fsck'),
SYSTEM_FSCK_PATH)
self.install_bin(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'process-killer'),
PROCESS_KILLER_PATH)