@@ -0,0 +1,720 @@
+#!/usr/bin/env python%0A%0Aimport driller.config as config%0Aimport os%0Aimport sys%0A%0Adef main(argv):%0A%0A    if len(argv) %3C 2:%0A        print %22%25s %3Cn-workers%3E%22 %25 argv%5B0%5D%0A        return 1%0A%0A    n = int(argv%5B1%5D)%0A%0A    # verify that config.QEMU_DIR is sane%0A    if not os.isdir(config.QEMU_DIR):%0A        print %22the qemu directory specified in the config is not a directory%22%0A        return 1%0A%0A    if %22driller-qemu-cgc%22 not in os.listdir(config.QEMU_DIR):%0A        print %22the qemu directory does not contain any file by the name of 'driller-qemu-cgc'%22%0A        return 1%0A%0A    args = %5B%22celery%22, %22-A%22, %22driller.tasks%22, %22worker%22, %22-c%22, n, %22--loglevel=info%22%5D%0A%0A    os.execv(args%5B0%5D, args)%0A%0A%0A%0A%0Aif __name__ == %22__main__%22:%0A    sys.exit(main(sys.argv))%0A

Add node.py script to automate the process of sanity checking a celery worker's environment