[Fai-commit] r6726 - in test-suite/scenarios/fai40-testing: files/etc files/etc/preinst-error scripts scripts/fai40
Michael Tautschnig
mt at alioth.debian.org
Sat Oct 22 15:56:20 UTC 2011
Author: mt
Date: 2011-10-22 15:56:19 +0000 (Sat, 22 Oct 2011)
New Revision: 6726
Added:
test-suite/scenarios/fai40-testing/files/etc/preinst-error/
test-suite/scenarios/fai40-testing/files/etc/preinst-error/fai40
test-suite/scenarios/fai40-testing/files/etc/preinst-error/preinst
test-suite/scenarios/fai40-testing/scripts/fai40/
test-suite/scenarios/fai40-testing/scripts/fai40/10-bug573044
Log:
regression test for bug 573044
Added: test-suite/scenarios/fai40-testing/files/etc/preinst-error/fai40
===================================================================
--- test-suite/scenarios/fai40-testing/files/etc/preinst-error/fai40 (rev 0)
+++ test-suite/scenarios/fai40-testing/files/etc/preinst-error/fai40 2011-10-22 15:56:19 UTC (rev 6726)
@@ -0,0 +1 @@
+This file should not be copied
Added: test-suite/scenarios/fai40-testing/files/etc/preinst-error/preinst
===================================================================
--- test-suite/scenarios/fai40-testing/files/etc/preinst-error/preinst (rev 0)
+++ test-suite/scenarios/fai40-testing/files/etc/preinst-error/preinst 2011-10-22 15:56:19 UTC (rev 6726)
@@ -0,0 +1,2 @@
+exit 1
+
Property changes on: test-suite/scenarios/fai40-testing/files/etc/preinst-error/preinst
___________________________________________________________________
Added: svn:executable
+ *
Added: test-suite/scenarios/fai40-testing/scripts/fai40/10-bug573044
===================================================================
--- test-suite/scenarios/fai40-testing/scripts/fai40/10-bug573044 (rev 0)
+++ test-suite/scenarios/fai40-testing/scripts/fai40/10-bug573044 2011-10-22 15:56:19 UTC (rev 6726)
@@ -0,0 +1,10 @@
+#! /bin/bash
+
+error=0; trap 'error=$(($?>$error?$?:$error))' ERR # save maximum error code
+
+if !fcopy /etc/preinst-error ; then
+ error=1
+fi
+[ ! -f /etc/preinst-error ]
+
+exit $error
Property changes on: test-suite/scenarios/fai40-testing/scripts/fai40/10-bug573044
___________________________________________________________________
Added: svn:executable
+ *
More information about the Fai-commit
mailing list