Fix the Requires() examples by adding a sleep command to the
[scons.git] / bin / scons-doc.py
index 6ea429be4241e5e1b614fa16969cf37c905f00c4..e385b08118f3a37c2416bd20b5d6951467e577f3 100644 (file)
@@ -490,11 +490,15 @@ def command_ls(args, c, test, dict):
     else:
         return ls(test.workpath('WORK'))
 
+def command_sleep(args, c, test, dict):
+    time.sleep(int(args[0]))
+
 CommandDict = {
     'scons' : command_scons,
     'touch' : command_touch,
     'edit'  : command_edit,
     'ls'    : command_ls,
+    'sleep' : command_sleep,
 }
 
 def ExecuteCommand(args, c, t, dict):