@@ -777,10 +777,10 @@ def recursecb(key, hash1, hash2):
777
777
778
778
class SStatePrintdiff (SStateBase ):
779
779
def run_test_printdiff_changerecipe (self , target , change_recipe , change_bbtask , change_content , expected_sametmp_output , expected_difftmp_output ):
780
+ import time
780
781
self .write_config ("""
781
- TMPDIR = "${TOPDIR}/tmp-sstateprintdiff"
782
- """ )
783
- self .track_for_cleanup (self .topdir + "/tmp-sstateprintdiff" )
782
+ TMPDIR = "${{TOPDIR}}/tmp-sstateprintdiff-sametmp-{}"
783
+ """ .format (time .time ()))
784
784
# Use runall do_build to ensure any indirect sstate is created, e.g. tzcode-native on both x86 and
785
785
# aarch64 hosts since only allarch target recipes depend upon it and it may not be built otherwise.
786
786
# A bitbake -c cleansstate tzcode-native would cause some of these tests to error for example.
@@ -791,9 +791,8 @@ def run_test_printdiff_changerecipe(self, target, change_recipe, change_bbtask,
791
791
result_sametmp = bitbake ("-S printdiff {}" .format (target ))
792
792
793
793
self .write_config ("""
794
- TMPDIR = "${TOPDIR}/tmp-sstateprintdiff-2"
795
- """ )
796
- self .track_for_cleanup (self .topdir + "/tmp-sstateprintdiff-2" )
794
+ TMPDIR = "${{TOPDIR}}/tmp-sstateprintdiff-difftmp-{}"
795
+ """ .format (time .time ()))
797
796
result_difftmp = bitbake ("-S printdiff {}" .format (target ))
798
797
799
798
self .delete_recipeinc (change_recipe )
@@ -803,20 +802,19 @@ def run_test_printdiff_changerecipe(self, target, change_recipe, change_bbtask,
803
802
self .assertIn (item , result_difftmp .output , msg = "Item {} not found in output:\n {}" .format (item , result_difftmp .output ))
804
803
805
804
def run_test_printdiff_changeconfig (self , target , change_content , expected_sametmp_output , expected_difftmp_output ):
805
+ import time
806
806
self .write_config ("""
807
- TMPDIR = "${TOPDIR}/tmp-sstateprintdiff"
808
- """ )
809
- self .track_for_cleanup (self .topdir + "/tmp-sstateprintdiff" )
807
+ TMPDIR = "${{TOPDIR}}/tmp-sstateprintdiff-sametmp-{}"
808
+ """ .format (time .time ()))
810
809
bitbake ("--runall build --runall deploy_source_date_epoch {}" .format (target ))
811
810
bitbake ("-S none {}" .format (target ))
812
811
self .append_config (change_content )
813
812
result_sametmp = bitbake ("-S printdiff {}" .format (target ))
814
813
815
814
self .write_config ("""
816
- TMPDIR = "${TOPDIR}/tmp-sstateprintdiff-2 "
817
- """ )
815
+ TMPDIR = "${{ TOPDIR}} /tmp-sstateprintdiff-difftmp-{} "
816
+ """ . format ( time . time ()) )
818
817
self .append_config (change_content )
819
- self .track_for_cleanup (self .topdir + "/tmp-sstateprintdiff-2" )
820
818
result_difftmp = bitbake ("-S printdiff {}" .format (target ))
821
819
822
820
for item in expected_sametmp_output :
0 commit comments