- add hook to run QA tests esp for post product builds
authorAdrian Schröter <adrian@suse.de>
Wed, 12 Oct 2011 14:37:13 +0000 (16:37 +0200)
committerAdrian Schröter <adrian@suse.de>
Wed, 12 Oct 2011 15:18:45 +0000 (17:18 +0200)
build_kiwi.sh

index 09d7188..7139cd0 100644 (file)
@@ -256,4 +256,8 @@ EOF
            rm -f $BUILD_ROOT/kiwi_post.sh
        done
     fi
+    # Hook for running post kiwi build scripts like QA scripts if installed
+    if [ -x /usr/lib/build/kiwi_post_run ]; then
+        chroot $BUILD_ROOT su -c /usr/lib/build/kiwi_post_run || cleanup_and_exit 1
+    fi
 }