The pretty_printer_test_program target uses AIB_COMPONENT=pretty-printer-test (singular) whereas the build_pretty_printer_test() function uses AIB_COMPONENT='pretty-printer-tests' (plural).
pretty_printer_test_program = env.Program( target='pretty_printer_test_program', source=[ 'pretty_printer_test_program.cpp', ], LIBDEPS=[ '$BUILD_DIR/mongo/base', ], AIB_COMPONENT='pretty-printer-test', AIB_COMPONENTS_EXTRA=['dist-test'], )
This hasn't been an issue in Evergreen testing for the pretty printers because the pretty printers would have been built (by SCons, not ninja) using the install-dist-test target.