code: def return_status():
      """
      Make sure that UPDATE_NOW returns a failure status if
      the target failed in a previous call to UPDATE_NOW
      """
      t = BoostBuild.Tester(pass_toolset=0)
  
      t.write(
          "file.jam",
          """\
  actions fail
  {
      exit 1
  }
  
  NOTFILE target1 ;
  ALWAYS target1 ;
  fail target1 ;
  
  ECHO "update1:" [ UPDATE_NOW target1 ] ;
  ECHO "update2:" [ UPDATE_NOW target1 ] ;
  
  DEPENDS all : target1 ;
  """,
      )
  
      t.run_build_system(
          ["-ffile.jam"],
          status=1,
          stdout="""\
  ...found 1 target...
  ...updating 1 target...
  fail target1
  
      exit 1
  
  ...failed fail target1...
  ...failed updating 1 target...
  update1:
  update2:
  ...found 1 target...
  """,
      )
  
      t.cleanup()
  
file_path: turicreate/src/external/boost/boost_1_68_0/tools/build/test/core_update_now.py
imports: import BoostBuild
  import os
label_desc: Use image node_id 6 for calling a global function with example usage: return_status() without return types