Current bankruptcy law gives very little relief to the debtor/tenant. Once the case is filed, if the landlord has a judgment for possession, the debtor must pay “any rent that would become due during the 30-day period after the filing of the bankruptcy petition”, and file a certification with the bankruptcy that the debt has made the payment and the state law permits the debtor to cure the deficiency. If the debtor complies, the landlord cannot enforce the judgment for possession (ie have the sheriff put you out of the property ) for 30 days after the bankruptcy filing.
If the debtor wants to stay in the property past the date that is 30 days after the bankruptcy filing, the debtor has to cure the entire default, and file a further certification that the debtor has done so. These rules apply only to eviction for nonpayment. If the eviction is for endangering the property or using/selling drugs on the property, or the endangerment/drug selling/use occurs within the 30 day period, and the landlord so certifies to the bankruptcy court, the landlord can proceed with the eviction. The law provides for a hearing in either situation if the non-certifying party objects.